-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Closed
Copy link
Labels
d: examplesSample code and demosSample code and demosf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
The https://api.flutter.dev/flutter/material/ListTile-class.html custom list tile examples are now live in DartPad, so the app screenshots are redundant. For example:
The _ArticleDescription class in the second custom list tile example creates a Column with two text widgets, where the second text widget is to be bottom aligned like a footer. This is done with two Expanded widgets, roughly like this:
Column(
children: <Widget>[
Expanded(child Text(...)),
Expanded(child Text(...)),
],
)
This means that 1/2 of the available height is allocated to each Text child, which makes the layout needlessly tight. The layout overflows with `useMaterial3: true' because the default font is slightly bigger.
Metadata
Metadata
Assignees
Labels
d: examplesSample code and demosSample code and demosf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.