design: Disappearing dividers between chats

This commit is contained in:
Christian Pauly 2021-06-20 13:25:06 +02:00
parent 3b7144d805
commit 797105cd17

View File

@ -195,7 +195,23 @@ class ChatListView extends StatelessWidget {
);
}
final totalCount = rooms.length + 1;
return ListView.builder(
return ListView.separated(
separatorBuilder: (_, __) => Row(
children: [
Spacer(),
Container(
height: 1,
width: 200,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.transparent,
Theme.of(context).dividerColor,
],
)),
),
],
),
itemCount: totalCount,
itemBuilder: (BuildContext context, int i) {
if (i == 0) {