Skip to content

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

@pedrovhb

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.

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