Remove unnecessary stack from appScaffold
This commit is contained in:
parent
8bd8403840
commit
493215583c
@ -13,10 +13,9 @@ class WondersAppScaffold extends StatelessWidget {
|
||||
_style = AppStyle(screenSize: context.sizePx);
|
||||
Animate.defaultDuration = _style.times.fast;
|
||||
appLogic.handleAppSizeChanged(context.mq.size);
|
||||
return Stack(
|
||||
return KeyedSubtree(
|
||||
key: ValueKey($styles.scale),
|
||||
children: [
|
||||
Theme(
|
||||
child: Theme(
|
||||
data: $styles.colors.toThemeData(),
|
||||
// Provide a default texts style to allow Hero's to render text properly
|
||||
child: DefaultTextStyle(
|
||||
@ -28,7 +27,6 @@ class WondersAppScaffold extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user