Remove unnecessary stack from appScaffold

This commit is contained in:
Shawn 2023-02-16 00:33:00 -07:00
parent 8bd8403840
commit 493215583c

View File

@ -13,10 +13,9 @@ class WondersAppScaffold extends StatelessWidget {
_style = AppStyle(screenSize: context.sizePx); _style = AppStyle(screenSize: context.sizePx);
Animate.defaultDuration = _style.times.fast; Animate.defaultDuration = _style.times.fast;
appLogic.handleAppSizeChanged(context.mq.size); appLogic.handleAppSizeChanged(context.mq.size);
return Stack( return KeyedSubtree(
key: ValueKey($styles.scale), key: ValueKey($styles.scale),
children: [ child: Theme(
Theme(
data: $styles.colors.toThemeData(), data: $styles.colors.toThemeData(),
// Provide a default texts style to allow Hero's to render text properly // Provide a default texts style to allow Hero's to render text properly
child: DefaultTextStyle( child: DefaultTextStyle(
@ -28,7 +27,6 @@ class WondersAppScaffold extends StatelessWidget {
), ),
), ),
), ),
],
); );
} }
} }