Skip to content

The ListTile "custom" examples include unnecessary screenshots and Expand widgets #128070

@HansMuller

Description

@HansMuller

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:

Screenshot 2023-06-01 at 12 13 27 PM

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 demosf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions