From 1b84d8f00f7dcd233feffde55e02c865dcdf53f1 Mon Sep 17 00:00:00 2001 From: Lisandro Pérez Meyer Date: Fri, 17 Nov 2023 14:11:58 -0300 Subject: Set environment variables for enabling debugging screen and main animation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia4100f300b7f8507564ef80a1fc56c2352cfd5ce Signed-off-by: Lisandro Pérez Meyer --- lib/presentation/screens/home/home.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/presentation') diff --git a/lib/presentation/screens/home/home.dart b/lib/presentation/screens/home/home.dart index a18e640..41f6895 100644 --- a/lib/presentation/screens/home/home.dart +++ b/lib/presentation/screens/home/home.dart @@ -31,6 +31,9 @@ class HomeScreenState extends ConsumerState { ) { return Consumer(builder: (context, ref, child) { final state = ref.read(appProvider); + const disableBkgAnimation = bool.fromEnvironment('DISABLE_BKG_ANIMATION'); + if(disableBkgAnimation) + print('Background animation: disabled'); return Scaffold( key: homeScaffoldKey, extendBody: true, @@ -38,11 +41,12 @@ class HomeScreenState extends ConsumerState { appBar: const CustomTopBar(), body: Stack( children: [ - Lottie.asset( - 'animations/BG-dotwaveform.json', - fit: BoxFit.cover, - repeat: true, - ), + if (!disableBkgAnimation) + Lottie.asset( + 'animations/BG-dotwaveform.json', + fit: BoxFit.cover, + repeat: true, + ), FlowBuilder( state: ref.watch(appProvider), onGeneratePages: onGenerateAppViewPages, -- cgit 1.2.3-korg