Hide all home page content when showing home_menu

This commit is contained in:
Shawn 2022-10-27 10:23:52 -06:00
parent 60d65e8191
commit 1a34f14967

View File

@ -233,6 +233,9 @@ class _HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateM
/// Floating controls / UI /// Floating controls / UI
AnimatedSwitcher( AnimatedSwitcher(
duration: $styles.times.fast, duration: $styles.times.fast,
child: AnimatedOpacity(
opacity: _isMenuOpen ? 0 : 1,
duration: $styles.times.med,
child: RepaintBoundary( child: RepaintBoundary(
child: OverflowBox( child: OverflowBox(
child: Column( child: Column(
@ -257,12 +260,8 @@ class _HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateM
onDecrease: () => _setPageIndex(_wonderIndex - 1), onDecrease: () => _setPageIndex(_wonderIndex - 1),
onTap: () => _showDetailsPage(), onTap: () => _showDetailsPage(),
// Hide the title when the menu is open for visual polish // Hide the title when the menu is open for visual polish
child: AnimatedOpacity(
opacity: _isMenuOpen ? 0 : 1,
duration: $styles.times.fast,
child: WonderTitleText(currentWonder, enableShadows: true), child: WonderTitleText(currentWonder, enableShadows: true),
), ),
),
Gap($styles.insets.md), Gap($styles.insets.md),
AppPageIndicator( AppPageIndicator(
count: _numWonders, count: _numWonders,
@ -318,6 +317,7 @@ class _HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateM
), ),
), ),
), ),
),
/// Menu Btn /// Menu Btn
TopLeft( TopLeft(