Fix bottom sheets ignoring the bottom view inset

This commit is contained in:
PapaTutuWawa 2025-05-05 22:20:45 +02:00
parent 0863878ebc
commit efe6178ed9

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),
),
),