yohom / nested_scroll_views

Flutter nested scrolling views.

Home Page:https://pub.dev/packages/nested_scroll_views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. 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: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

About

Flutter nested scrolling views.

https://pub.dev/packages/nested_scroll_views

License:MIT License


Languages

Language:Dart 84.8%Language:C++ 7.2%Language:CMake 6.4%Language:HTML 0.6%Language:C 0.5%Language:Swift 0.4%Language:Kotlin 0.0%Language:Objective-C 0.0%