https://github.com/hgraceb/nested_scroll_views
Flutter nested scrolling views.
https://github.com/hgraceb/nested_scroll_views
flutter nested scroll views
Last synced: about 1 month ago
JSON representation
Flutter nested scrolling views.
- Host: GitHub
- URL: https://github.com/hgraceb/nested_scroll_views
- Owner: hgraceb
- License: mit
- Created: 2022-10-03T08:17:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T12:23:16.000Z (over 1 year ago)
- Last Synced: 2024-08-07T14:58:25.428Z (over 1 year ago)
- Topics: flutter, nested, scroll, views
- Language: Dart
- Homepage: https://pub.dev/packages/nested_scroll_views
- Size: 3.53 MB
- Stars: 8
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Nested Scrolling Views
Flutter nested scrolling views.
## Usage
Replace flutter's views with the following views and use them nested.
| Flutter | Nested |
| --------------------- | --------------------------- |
| PageView | NestedPageView |
| TabBarView | NestedTabBarView |
| ListView | NestedListView |
| GridView | NestedGridView |
| CustomScrollView | NestedCustomScrollView |
| SingleChildScrollView | NestedSingleChildScrollView |
## Attention
1. Nested non-nested views with the same scroll direction will result in weird scrolling.
2. Nested views are kept alive by default, you can set `wantKeepAlive` to false, which may lead to loss of gesture events because the page is destroyed.
## Thanks
- [flutter](https://github.com/flutter/flutter):Flutter makes it easy and fast to build beautiful apps for mobile and beyond
- [union_tabs](https://github.com/wilin52/union_tabs):A nested TabBarView overscroll unites outer TabBarView scroll event
- [primary_page_view](https://gist.github.com/lwlizhe/558ee91b691a7d9e6873f16d9abccf78):FLutter Nested Primary PageView