Skip to content

Commit 0eac54f

Browse files
chrisbobbegnprice
authored andcommitted
recent_dm_conversations: Handle insets with a SafeArea
Fixes: #339
1 parent d59a684 commit 0eac54f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

lib/widgets/recent_dm_conversations.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,19 @@ class _RecentDmConversationsPageState extends State<RecentDmConversationsPage> w
5757
final sorted = model!.sorted;
5858
return Scaffold(
5959
appBar: AppBar(title: const Text('Direct messages')),
60-
body: ListView.builder(
61-
itemCount: sorted.length,
62-
itemBuilder: (context, index) {
63-
final narrow = sorted[index];
64-
return RecentDmConversationsItem(
65-
narrow: narrow,
66-
unreadCount: unreadsModel!.countInDmNarrow(narrow),
67-
);
68-
}));
60+
body: SafeArea(
61+
// Don't pad the bottom here; we want the list content to do that.
62+
bottom: false,
63+
child: ListView.builder(
64+
itemCount: sorted.length,
65+
itemBuilder: (context, index) {
66+
final narrow = sorted[index];
67+
return RecentDmConversationsItem(
68+
narrow: narrow,
69+
unreadCount: unreadsModel!.countInDmNarrow(narrow),
70+
);
71+
}),
72+
));
6973
}
7074
}
7175

0 commit comments

Comments
 (0)