mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Remove top safe area from demo screen for desktop layout (#210)
This commit is contained in:
@@ -477,9 +477,13 @@ class _DemoPageState extends State<DemoPage> with TickerProviderStateMixin {
|
|||||||
|
|
||||||
// Add the splash page functionality for desktop.
|
// Add the splash page functionality for desktop.
|
||||||
if (isDesktop) {
|
if (isDesktop) {
|
||||||
page = SplashPage(
|
page = MediaQuery.removePadding(
|
||||||
|
removeTop: true,
|
||||||
|
context: context,
|
||||||
|
child: SplashPage(
|
||||||
isAnimated: false,
|
isAnimated: false,
|
||||||
child: page,
|
child: page,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user