mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
JournalList: Add a separator between the entries
This commit is contained in:
@ -17,7 +17,12 @@ class JournalList extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListView.builder(
|
||||
return ListView.separated(
|
||||
separatorBuilder: (context, index) {
|
||||
return Divider(
|
||||
color: Theme.of(context).primaryColorLight,
|
||||
);
|
||||
},
|
||||
itemBuilder: (context, i) {
|
||||
if (i >= notes.length) {
|
||||
return null;
|
||||
@ -42,6 +47,7 @@ class JournalList extends StatelessWidget {
|
||||
},
|
||||
);
|
||||
},
|
||||
itemCount: notes.length,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user