fix: Handle black space and nav bar issue (#2499)
David Adegoke committed
Sep 5, 2025 at 13:03 UTC
067313e0775388fe99fc6d439e47fd7a15c853c6
1 file changed
+21
-16
lib/src/screens/base_page.dart
+21
-16
@@ -182,18 +182,18 @@ abstract class BasePage extends StatelessWidget {
182
final backgroundImage = getIt.get<SettingsStore>().backgroundImage;
183
184
return Container(
185
- width: double.infinity,
186
- height: double.infinity,
187
- decoration: BoxDecoration(
188
- image: backgroundImage.isNotEmpty
189
- ? DecorationImage(
190
- image: FileImage(File(backgroundImage)),
191
- fit: BoxFit.cover,
192
- )
193
- : null,
194
- // color: Colors.grey[200],
195
- ),
196
- child: Scaffold(
185
+ width: double.infinity,
186
+ height: double.infinity,
187
+ decoration: BoxDecoration(
188
+ image: backgroundImage.isNotEmpty
189
+ ? DecorationImage(
190
+ image: FileImage(File(backgroundImage)),
191
+ fit: BoxFit.cover,
192
+ )
193
+ : null,
194
+ // color: Colors.grey[200],
195
+ ),
196
+ child: Scaffold(
197
key: _scaffoldKey,
198
backgroundColor: pageBackgroundColor(context),
199
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
@@ -201,11 +201,16 @@ abstract class BasePage extends StatelessWidget {
201
endDrawer: endDrawer,
202
appBar: appBar(context),
203
body: SafeArea(
204
+ left: false,
205
+ right: false,
206
top: false,
205
- child: body(context)),
206
- floatingActionButton: floatingActionButton(context)),
207
- );
208
- }
207
+ bottom: Platform.isAndroid,
208
+ child: body(context),
209
+ ),
210
+ floatingActionButton: floatingActionButton(context),
211
+ ),
212
+ );
213
+ },
214
),
215
pushToWidget: (context) => pushToWidget?.call(context),
216
pushToNextWidget: (context) => pushToNextWidget?.call(context),