Answers for "listview builder seperator"

0

listview builder seperator

ListView.separated(
  separatorBuilder: (context, index) => Divider(
        color: Colors.black,
      ),
  itemCount: 20,
  itemBuilder: (context, index) => Padding(
        padding: EdgeInsets.all(8.0),
        child: Center(child: Text("Index $index")),
      ),
)
Posted by: Guest on March-09-2021

Code answers related to "listview builder seperator"

Browse Popular Code Answers by Language