mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: add more padding in bottom sheet widget (#4542)
This commit is contained in:
parent
ea93f0e141
commit
f1e380c276
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user