fix: add more padding in bottom sheet widget (#4542)

This commit is contained in:
Lucas.Xu
2024-01-29 23:12:56 +08:00
committed by GitHub
parent ea93f0e141
commit f1e380c276

View File

@ -114,12 +114,10 @@ Future<T?> showMobileBottomSheet<T>(
return children.first; return children.first;
} }
// not full-screen mode // add default padding
if (MediaQuery.of(context).padding.bottom == 0) {
children.add( children.add(
const VSpace(16), VSpace(MediaQuery.of(context).padding.bottom == 0 ? 28.0 : 16.0),
); );
}
return SafeArea( return SafeArea(
child: Column( child: Column(