Answers for "flutter three line list"

5

flutter three line list

// Three-line list
ListView(
  children: [
    ListTile(
      title: Text('List item 1'),
      isThreeLine: true,
      subtitle: Text('Secondary text\nTertiary text'),
      leading: Icon(Icons.label),
      trailing: Text('Metadata'),
    ),
  ],
)
Posted by: Guest on August-23-2021
4

flutter two line list

// Two-line list
ListView(
  children: [
    ListTile(
      title: Text('List item 1'),
      subtitle: Text('Secondary text'),
      leading: Icon(Icons.label),
      trailing: trailing: Text('Metadata'),
    ),
  ],
)
Posted by: Guest on August-23-2021
6

flutter single line list

// Single-line list
ListView(
  children: [
    ListTile(
      title: Text('Primary text'),
      leading: Icon(Icons.label),
      trailing: Text('Metadata'),
    ),
  ],
)
Posted by: Guest on August-23-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language