Skip to content
pubscout

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.

WASM-readyUses material_ui
$ flutter pub add nested_scroll_views
Source repository

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 NestedListView

Alternatives

Packages that do the same job and could replace nested_scroll_views.

Works with

Packages commonly used together with nested_scroll_views: ones it builds on, ones built on it, and its own family.