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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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