Compare commits
2 Commits
0863878ebc
...
d40d24f759
Author | SHA1 | Date | |
---|---|---|---|
d40d24f759 | |||
efe6178ed9 |
@ -84,7 +84,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
return FutureBuilder(
|
return FutureBuilder(
|
||||||
future: _initCompleter.future,
|
future: _initCompleter.future,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
print("${snapshot.hasData}");
|
|
||||||
if (!snapshot.hasData) {
|
if (!snapshot.hasData) {
|
||||||
return Center(child: CircularProgressIndicator());
|
return Center(child: CircularProgressIndicator());
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,12 @@ Future<T?> showDialogOrModal<T>({
|
|||||||
ScreenSize.small => showModalBottomSheet<T>(
|
ScreenSize.small => showModalBottomSheet<T>(
|
||||||
context: context,
|
context: context,
|
||||||
showDragHandle: showDragHandle,
|
showDragHandle: showDragHandle,
|
||||||
|
isScrollControlled: true,
|
||||||
builder:
|
builder:
|
||||||
(context) => Padding(
|
(context) => Padding(
|
||||||
padding: EdgeInsets.only(bottom: 32),
|
padding: EdgeInsets.only(
|
||||||
|
bottom: 32 + MediaQuery.of(context).viewInsets.bottom,
|
||||||
|
),
|
||||||
child: builder(context),
|
child: builder(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user