nested_scroll_views
0.0.14, released 3 weeks ago by an unverified publisher
Flutter nested scrolling with drag handoff at scroll boundaries for multiple scroll views.
What it does
Provides nested scrolling views with drag handoff at scroll boundaries for PageView, TabBarView, ListView, GridView, CustomScrollView, and SingleChildScrollView. It replaces standard Flutter views to enable nested scrolling behavior.
AI-written summary of version 0.0.14, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need nested scroll views like PageView or TabBarView inside another scroll view in Flutter.
- You want drag handoff at scroll boundaries for lists, grids, or custom scroll views.
Skip it when
- You are nesting non-nested views with the same scroll direction, which results in weird scrolling.
- You require specific older Flutter or Dart versions not meeting the requirements.
Strengths
- Supports multiple view types including PageView, TabBarView, ListView, GridView, CustomScrollView, and SingleChildScrollView.
- Handles drag handoff seamlessly at scroll boundaries.
Weaknesses
- Nesting non-nested views with the same scroll direction leads to weird scrolling behavior.
- Setting wantKeepAlive to false may lead to loss of gesture events because the page is destroyed.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Flutter 3.47.0+, Dart 3.13.0+, and material_ui 0.0.1+. Add material_ui for Material widgets and tab controllers.
import 'package:material_ui/material_ui.dart';
import 'package:nested_scroll_views/material_ui.dart';
// Replace Flutter's views with nested alternatives like NestedPageView or NestedListViewAlternatives
Packages that do the same job and could replace nested_scroll_views.
- two_dimensional_scrollables
Widgets for two‑dimensional scrolling like TableView and TreeView
94Compare - animated_reorderable
Animated, draggable reorderable ListView/GridView with built‑in swipe‑to‑delete.
73Compare - paging_view
Flutter widgets for infinite‑scroll, paginated lists, grids and slivers with data‑source control.
71Compare - scroll_indicator
Scroll indicator widget inspired by the Shopee app.
45Compare
Works with
Packages commonly used together with nested_scroll_views: ones it builds on, ones built on it, and its own family.