nested_scroll_views 0.0.5 copy "nested_scroll_views: ^0.0.5" to clipboard
nested_scroll_views: ^0.0.5 copied to clipboard

Flutter nested scrolling views.

Nested Scrolling Views #

Flutter nested scrolling views.

NestedTabBarView.gif NestedPageView.gif NestedSingleChildScrollView.gif

Usage #

Replace flutter's views with the following views and use them nested.

View Controller Flutter
NestedPageView NestedPageController PageView
NestedTabBarView TabController TabBarView
NestedSingleChildScrollView ScrollController SingleChildScrollView
NestedListView ScrollController ListView
NestedGridView ScrollController GridView
NestedCustomScrollView ScrollController CustomScrollView

Attention #

  1. NeverScrollableScrollPhysics is invalid.
  2. Nested non-nested views with the same scroll direction will result in weird scrolling.
  3. 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:Flutter makes it easy and fast to build beautiful apps for mobile and beyond

  • union_tabs:A nested TabBarView overscroll unites outer TabBarView scroll event

  • primary_page_view:FLutter Nested Primary PageView

34
likes
0
pub points
87%
popularity

Publisher

unverified uploader

Flutter nested scrolling views.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nested_scroll_views