Created
September 14, 2021 16:08
-
-
Save vijayinyoutube/8b03feb399841ba9df9f922ed976ddbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget buildItems(dataList) => ListView.separated( | |
padding: const EdgeInsets.all(8), | |
itemCount: dataList.length, | |
separatorBuilder: (BuildContext context, int index) => const Divider(), | |
itemBuilder: (BuildContext context, int index) { | |
return ListTile( | |
title: Text( | |
dataList[index]["Name"], | |
), | |
subtitle: Text(dataList[index]["Dept"]), | |
trailing: Text( | |
dataList[index]["RollNo"], | |
), | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment