From ae9ad191316ea506633c19975a7eb2861e8d17ec Mon Sep 17 00:00:00 2001 From: Lisandro Pérez Meyer Date: Mon, 20 Nov 2023 10:05:49 -0300 Subject: Refactor: env variables. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original from: Dominik Wawrzonek Bug-AGL: SPEC-4971 Change-Id: I95f23d4f475aa7db82b6d34f2fc62e9f10092a75 Signed-off-by: Lisandro Pérez Meyer --- lib/presentation/screens/apps/widgets/app_button.dart | 1 - lib/presentation/screens/home/home.dart | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/presentation') diff --git a/lib/presentation/screens/apps/widgets/app_button.dart b/lib/presentation/screens/apps/widgets/app_button.dart index a890786..2e016ca 100644 --- a/lib/presentation/screens/apps/widgets/app_button.dart +++ b/lib/presentation/screens/apps/widgets/app_button.dart @@ -18,7 +18,6 @@ class AppButton extends StatefulWidget { class _AppButtonState extends State { @override Widget build(BuildContext context) { - Size size = MediaQuery.sizeOf(context); return Container( width: 250, height: 250, diff --git a/lib/presentation/screens/home/home.dart b/lib/presentation/screens/home/home.dart index 41f6895..9719f8f 100644 --- a/lib/presentation/screens/home/home.dart +++ b/lib/presentation/screens/home/home.dart @@ -31,9 +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'); + if (disableBkgAnimation) { + debugPrint('Background animation: disabled'); + } return Scaffold( key: homeScaffoldKey, extendBody: true, -- cgit 1.2.3-korg