From 0c47c943f9d6033b658c40b424f6aaabf6ae8fd8 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 26 Jun 2024 22:08:00 +0200 Subject: [PATCH] add separator --- covas_mobile/lib/ListItemMenu.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/covas_mobile/lib/ListItemMenu.dart b/covas_mobile/lib/ListItemMenu.dart index 7f371ac..0ab0041 100644 --- a/covas_mobile/lib/ListItemMenu.dart +++ b/covas_mobile/lib/ListItemMenu.dart @@ -83,13 +83,16 @@ class _MyHomePageState extends State { // function to display fetched data on screen Widget buildPosts(List posts) { // ListView Builder to show data in a list - return ListView.builder( + return ListView.separated( itemCount: posts.length, itemBuilder: (context, index) { final post = posts[index]; return ListTile( title: Text('${post.name!}'), subtitle: Text('${post.place!}')); }, + separatorBuilder: (context, index) { + return Divider(); + }, ); } }