Making list with Listview in flutter

  body: ListView.separated(

itemBuilder: (context, index) {
return Text(
arrNames[index],
style: TextStyle(fontSize: 25, fontWeight: FontWeight.w500),
);
},
itemCount: arrNames.length,
separatorBuilder: (context, index) {
return Divider(
height: 50,
thickness: 6,
);
},
));

Comments

Popular posts from this blog

swapping the alternate values in given array's element ! 17/11/2022

c++ basic question

Learning stage | c++ programs