mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 18:44:10 +01:00
fix: SafeArea on iPad
This commit is contained in:
parent
829b3b2660
commit
8911e649fd
@ -34,7 +34,7 @@ class OnePageCard extends StatelessWidget {
|
|||||||
horizontal: max((MediaQuery.of(context).size.width - 600) / 2, 0),
|
horizontal: max((MediaQuery.of(context).size.width - 600) / 2, 0),
|
||||||
vertical: max((MediaQuery.of(context).size.height - 800) / 2, 0),
|
vertical: max((MediaQuery.of(context).size.height - 800) / 2, 0),
|
||||||
),
|
),
|
||||||
child: Card(child: child),
|
child: SafeArea(child: Card(child: child)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,10 @@ void main() async {
|
|||||||
// To make sure that the parts of flutter needed are started up already, we need to ensure that the
|
// To make sure that the parts of flutter needed are started up already, we need to ensure that the
|
||||||
// widget bindings are initialized already.
|
// widget bindings are initialized already.
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||||
SystemUiOverlayStyle(statusBarColor: Colors.transparent));
|
systemNavigationBarColor: Colors.transparent,
|
||||||
|
statusBarColor: Colors.transparent,
|
||||||
|
));
|
||||||
FlutterError.onError = (FlutterErrorDetails details) =>
|
FlutterError.onError = (FlutterErrorDetails details) =>
|
||||||
Zone.current.handleUncaughtError(details.exception, details.stack);
|
Zone.current.handleUncaughtError(details.exception, details.stack);
|
||||||
|
|
||||||
@ -74,6 +76,7 @@ class App extends StatelessWidget {
|
|||||||
child: Builder(
|
child: Builder(
|
||||||
builder: (context) => AdaptivePageLayout(
|
builder: (context) => AdaptivePageLayout(
|
||||||
key: _apl,
|
key: _apl,
|
||||||
|
safeAreaOnColumnView: false,
|
||||||
onGenerateRoute: FluffyRoutes(context).onGenerateRoute,
|
onGenerateRoute: FluffyRoutes(context).onGenerateRoute,
|
||||||
dividerColor: Theme.of(context).dividerColor,
|
dividerColor: Theme.of(context).dividerColor,
|
||||||
columnWidth: FluffyThemes.columnWidth,
|
columnWidth: FluffyThemes.columnWidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user