Answers for "flutter two line list"

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