Skip to content

Commit 7026744

Browse files
committed
inbox: Handle insets with a SafeArea
1 parent 4c5fd66 commit 7026744

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

lib/widgets/inbox.dart

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,25 @@ class _InboxPageState extends State<InboxPage> with PerAccountStoreAwareStateMix
155155

156156
return Scaffold(
157157
appBar: AppBar(title: const Text('Inbox')),
158-
body: StickyHeaderListView.builder(
159-
itemCount: sections.length,
160-
itemBuilder: (context, index) {
161-
final section = sections[index];
162-
switch (section) {
163-
case _AllDmsSectionData():
164-
return _AllDmsSection(
165-
data: section,
166-
collapsed: allDmsCollapsed,
167-
pageState: this,
168-
);
169-
case _StreamSectionData(:var streamId):
170-
final collapsed = collapsedStreamIds.contains(streamId);
171-
return _StreamSection(data: section, collapsed: collapsed, pageState: this);
172-
}
173-
}));
158+
body: SafeArea(
159+
// Don't pad the bottom here; we want the list content to do that.
160+
bottom: false,
161+
child: StickyHeaderListView.builder(
162+
itemCount: sections.length,
163+
itemBuilder: (context, index) {
164+
final section = sections[index];
165+
switch (section) {
166+
case _AllDmsSectionData():
167+
return _AllDmsSection(
168+
data: section,
169+
collapsed: allDmsCollapsed,
170+
pageState: this,
171+
);
172+
case _StreamSectionData(:var streamId):
173+
final collapsed = collapsedStreamIds.contains(streamId);
174+
return _StreamSection(data: section, collapsed: collapsed, pageState: this);
175+
}
176+
})));
174177
}
175178
}
176179

0 commit comments

Comments
 (0)