Skip to content

Update some of our ListView samples with CustomScrollViewsΒ #8435

Open
@Piinks

Description

@Piinks

ListView is very very common in examples, but for a lot of scrolling effects, hey are more easily and performantly achieved with a CustomScrollView.

In general, a lot of users start with a ListView, and then nest additional scrolling contents within using shrinkwrap. This is an anti-pattern. By including more examples of CustomScrollView in places like

  • the website
  • the API docs
  • Flutter Gallery
  • flutter/samples
  • codelabs
  • cookbooks

and elsewhere, we can make this option more readily available to developers. To be clear, we don't need to remove use of ListView - just pepper in an even balance of CustomScrollView as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a.cookbookRelates to a cookbook recipe or guidea.tut.codelabRelates to codelab hosted on docs.flutter.devfix.code-sampleNeeds new or updated code samplep2-mediumNecessary but not urgent concern. Resolve when possible.t.frameworkRelates to Flutter frameworkt.ui.scrollingRelates to a scrolling UI widget

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions