mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: Handle black space and nav bar issue (#2499)
This commit is contained in:
@@ -182,18 +182,18 @@ abstract class BasePage extends StatelessWidget {
|
||||
final backgroundImage = getIt.get<SettingsStore>().backgroundImage;
|
||||
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
image: backgroundImage.isNotEmpty
|
||||
? DecorationImage(
|
||||
image: FileImage(File(backgroundImage)),
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: null,
|
||||
// color: Colors.grey[200],
|
||||
),
|
||||
child: Scaffold(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
image: backgroundImage.isNotEmpty
|
||||
? DecorationImage(
|
||||
image: FileImage(File(backgroundImage)),
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: null,
|
||||
// color: Colors.grey[200],
|
||||
),
|
||||
child: Scaffold(
|
||||
key: _scaffoldKey,
|
||||
backgroundColor: pageBackgroundColor(context),
|
||||
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
|
||||
@@ -201,11 +201,16 @@ abstract class BasePage extends StatelessWidget {
|
||||
endDrawer: endDrawer,
|
||||
appBar: appBar(context),
|
||||
body: SafeArea(
|
||||
left: false,
|
||||
right: false,
|
||||
top: false,
|
||||
child: body(context)),
|
||||
floatingActionButton: floatingActionButton(context)),
|
||||
);
|
||||
}
|
||||
bottom: Platform.isAndroid,
|
||||
child: body(context),
|
||||
),
|
||||
floatingActionButton: floatingActionButton(context),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
pushToWidget: (context) => pushToWidget?.call(context),
|
||||
pushToNextWidget: (context) => pushToNextWidget?.call(context),
|
||||
|
||||
Reference in New Issue
Block a user