-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.would be a good packageSeparate Flutter package should be made for thisSeparate Flutter package should be made for this
Description
This is a feature request.
Can we have variable-sized (non-square) GridView widgets? E.g. the example from https://docs.flutter.io/flutter/widgets/GridView-class.html:
new GridView.count(
primary: false,
padding: const EdgeInsets.all(20.0),
crossAxisSpacing: 10.0,
crossAxisCount: 2,
children: <Widget>[
const Text('He\'d have you all unravel at the'),
const Text('Heed not the rabble'),
const Text('Sound of screams but the'),
const Text('Who scream'),
const Text('Revolution is coming...'),
const Text('Revolution, they...'),
],
)
This results in a lot of extra space below the text, since each grid item is square. It would be neat to set the height of each grid item. The simplest would be to set all the grid items to the same height. But we could envision the height being determined based on the height of the child widgets.
We could use a Wrap widget to have child widgets of variable heights, but then there is no scrolling.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.would be a good packageSeparate Flutter package should be made for thisSeparate Flutter package should be made for this
