design: Disappearing dividers between chats
This commit is contained in:
parent
347d7f67fd
commit
e199b3935e
1 changed files with 17 additions and 1 deletions
|
|
@ -195,7 +195,23 @@ class ChatListView extends StatelessWidget {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final totalCount = rooms.length + 1;
|
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,
|
itemCount: totalCount,
|
||||||
itemBuilder: (BuildContext context, int i) {
|
itemBuilder: (BuildContext context, int i) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue