Skip to content

Column and ListView documentation should talk about the "expand or scroll" use case #35753

Open

Description

@Hixie

We have some sample code in SingleChildScrollView that talks about the "expand or scroll" and "center or scroll" cases. There's a link to it from Column, but even I, who added the link, missed it just now when scanning through. We should also have similar examples at ListView showing how to do this kind of thing in the more general "infinite list" case. For example, we should show the use case of "align a button to the bottom of the viewport unless it can scroll in which case pin it to the bottom of the list" (presumably this should be possible using SliverFillRemaining). And the SingleChildScrollView docs should probably have an animation showing what it looks like, next to the sample code.

https://twitter.com/inryaa/status/1147278514879631365
https://master-api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    d: api docsIssues with https://api.flutter.dev/
    on Jul 8, 2019
  2. added this to the milestone on Jul 8, 2019
  3. goderbauer commented on Jul 9, 2019

    @goderbauer
    Member

    /cc @Piinks The generic example should be possible with the fix you're working on for SliverFillRemaining, I think.

  4. self-assigned this
    on Jul 9, 2019
  5. modified the milestones: , August 2019 on Jul 9, 2019
  6. Piinks commented on Jul 9, 2019

    @Piinks
    Contributor

    Related to #35758 and #17444

  7. Piinks commented on Sep 23, 2019

    @Piinks
    Contributor

    I think we are planning work for some new widgetry in this area to make for an easier experience. I'm going to un-assign myself for now as I won't be able to circle back right away.

  8. modified the milestones: September 2019, on Sep 23, 2019
  9. removed their assignment
    on Sep 23, 2019
  10. Piinks commented on Sep 24, 2019

    @Piinks
    Contributor

    cc/ @brianegan who is working on some illustrations and diagrams for SingleChildScrollView
    ref: flutter/assets-for-api-docs#106

  11. added
    P2Important issues not at the top of the work list
    on May 29, 2020
  12. removed this from the milestone on Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/f: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions