Answers for "fkutter create a list widget"

3

generate list flutter

List<int>.generate(3, (int index) => index * index); // [0, 1, 4]
Posted by: Guest on April-22-2021
1

list widget flutter

ListView(
  padding: const EdgeInsets.all(8),
  children: <Widget>[
    Container(
      height: 50,
      color: Colors.amber[600],
      child: const Center(child: Text('Entry A')),
    ),
    Container(
      height: 50,
      color: Colors.amber[500],
      child: const Center(child: Text('Entry B')),
    ),
    Container(
      height: 50,
      color: Colors.amber[100],
      child: const Center(child: Text('Entry C')),
    ),
  ],
)
Posted by: Guest on March-28-2020

Code answers related to "fkutter create a list widget"

Browse Popular Code Answers by Language