1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Remove top safe area from demo screen for desktop layout (#210)

This commit is contained in:
rami-a
2020-01-07 15:33:35 -05:00
committed by GitHub
parent 8b2688452a
commit c986d0a68a

View File

@@ -477,9 +477,13 @@ class _DemoPageState extends State<DemoPage> with TickerProviderStateMixin {
// Add the splash page functionality for desktop.
if (isDesktop) {
page = SplashPage(
page = MediaQuery.removePadding(
removeTop: true,
context: context,
child: SplashPage(
isAnimated: false,
child: page,
),
);
}