From 269f4062e85b94e26633555f64c2f186178dc625 Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 7 Sep 2022 18:48:04 -0600 Subject: [PATCH] Remove pool element from TajMahal Hero --- .../taj_mahal_illustration.dart | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/lib/ui/wonder_illustrations/taj_mahal_illustration.dart b/lib/ui/wonder_illustrations/taj_mahal_illustration.dart index 93f52a2e..fbe9dbbb 100644 --- a/lib/ui/wonder_illustrations/taj_mahal_illustration.dart +++ b/lib/ui/wonder_illustrations/taj_mahal_illustration.dart @@ -56,17 +56,20 @@ class TajMahalIllustration extends StatelessWidget { alignment: Alignment(0, config.shortMode ? 1 : -.15), child: FractionallySizedBox( widthFactor: config.shortMode ? 1 : 1.7, - child: WonderHero(config, 'taj-mg', - child: Stack( - children: [ - Image.asset('$assetPath/taj-mahal.png', opacity: anim, fit: BoxFit.cover), - if (!config.shortMode) - FractionalTranslation( - translation: Offset(0, 1.33), - child: Image.asset('$assetPath/pool.png', opacity: anim, fit: BoxFit.cover), - ), - ], - )), + child: Stack( + children: [ + WonderHero( + config, + 'taj-mg', + child: Image.asset('$assetPath/taj-mahal.png', opacity: anim, fit: BoxFit.cover), + ), + if (!config.shortMode) + FractionalTranslation( + translation: Offset(0, 1.33), + child: Image.asset('$assetPath/pool.png', opacity: anim, fit: BoxFit.cover), + ), + ], + ), ), ), )