summaryrefslogtreecommitdiffstats
path: root/lib/presentation
diff options
context:
space:
mode:
authorLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-17 14:11:58 -0300
committerLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-19 14:06:17 -0300
commit1b84d8f00f7dcd233feffde55e02c865dcdf53f1 (patch)
tree80a3c168b50fa68dfae913a9382c1c788ce681c1 /lib/presentation
parentb346b4ac3e97371270e53cfc521eb7696158f8df (diff)
Set environment variables for enabling debugging screen and main animation.
Change-Id: Ia4100f300b7f8507564ef80a1fc56c2352cfd5ce Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Diffstat (limited to 'lib/presentation')
-rw-r--r--lib/presentation/screens/home/home.dart14
1 files changed, 9 insertions, 5 deletions
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<HomeScreen> {
) {
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<HomeScreen> {
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<AppState>(
state: ref.watch(appProvider),
onGeneratePages: onGenerateAppViewPages,