Skip to content

ScrollableGrid: Omitting optional 'children' parameter returns broken widget #6591

Closed

Description

@pedrovhb

When creating a ScrollableGrid widget, not setting the 'children' parameter gives you the red error widget with the text NoSuchMethodError: The getter 'length' was called on null. Tried calling: length

Passing [] to this parameter gives you an error-free empty ScrollableGrid widget as expected.

Pretty minor but I'd expect either the children parameter to be required or to be assigned the empty list by default.

Activity

  1. self-assigned this
    on Oct 30, 2016
  2. abarth commented on Oct 30, 2016

    @abarth
    Contributor

    Good point.

  3. abarth commented on Oct 30, 2016

    @abarth
    Contributor

    Patch in #6592

  4. pedrovhb commented on Oct 30, 2016

    @pedrovhb
    Author

    Cool, that was quick.

  5. reopened this on Oct 31, 2016
  6. abarth commented on Oct 31, 2016

    @abarth
    Contributor

    Patch hasn't landed yet. :)

  7. added a commit that references this issue on Oct 31, 2016
    018ab3f
  8. abarth commented on Oct 31, 2016

    @abarth
    Contributor

    landed now. :)

  9. github-actions commented on Sep 5, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions