Skip to content

NestedScrollView does not scroll unless a minimum number of children are added to the CustomScrollView #110956

@croitor-ivan

Description

@croitor-ivan

Steps to Reproduce

  1. Create a project using the command below (from the official documentation)
    flutter create --sample=widgets.NestedScrollView.1 mysample
  2. Change the value of the childCount to 7
  3. Remove the expandedHeight: 150.0 from the SliverAppBar
  4. Set the extent to be 120
  5. Build the App on Android or iOS

Expected results:
The List should be scrolled without any issues as there are a couple of items off the screen.

Actual results:
The List is not scrolled.

Change the item count to 10 or more (depending on the device screen) => The list is scrolling. Code sample Use the sample code for NestedScrollView and adjust it as in the "Steps to reproduce"
Logs
Screen.Recording.10.Items.mov
Screen.Recording.7.Items.mov

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: scrollingViewports, list views, slivers, etc.found in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions