Fix bottom sheets ignoring the bottom view inset

This commit is contained in:
PapaTutuWawa committed 2025-05-05 22:20:45 +02:00
1 parent 0863878ebc
commit efe6178ed9
1 file changed
+4 -1
+4 -1
View File
@@ -13,9 +13,12 @@ Future<T?> showDialogOrModal<T>({
ScreenSize.small => showModalBottomSheet<T>(
context: context,
showDragHandle: showDragHandle,
isScrollControlled: true,
builder:
(context) => Padding(
padding: EdgeInsets.only(bottom: 32),
padding: EdgeInsets.only(
bottom: 32 + MediaQuery.of(context).viewInsets.bottom,
),
child: builder(context),
),
),