diff options
-rw-r--r-- | lib/core/constants/constants.dart | 4 | ||||
-rw-r--r-- | lib/main.dart | 1 | ||||
-rw-r--r-- | lib/presentation/screens/apps/widgets/app_button.dart | 1 | ||||
-rw-r--r-- | lib/presentation/screens/home/home.dart | 6 |
4 files changed, 7 insertions, 5 deletions
diff --git a/lib/core/constants/constants.dart b/lib/core/constants/constants.dart index 902af56..5d79b5a 100644 --- a/lib/core/constants/constants.dart +++ b/lib/core/constants/constants.dart @@ -8,4 +8,8 @@ const maxFuelLevel = 100.0; const maxSpeed = 240.0; const maxRpm = 8000; final GlobalKey<ScaffoldState> homeScaffoldKey = GlobalKey(); +const debugDisplay = bool.fromEnvironment('DEBUG_DISPLAY'); +const disableBkgAnimation = bool.fromEnvironment('DISABLE_BKG_ANIMATION'); + + diff --git a/lib/main.dart b/lib/main.dart index 85c7506..c7d84ee 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,7 +4,6 @@ import 'export.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); - const debugDisplay = bool.fromEnvironment('DEBUG_DISPLAY'); runApp(DevicePreview( enabled: debugDisplay, tools: const [ 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<AppButton> { @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<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'); + if (disableBkgAnimation) { + debugPrint('Background animation: disabled'); + } return Scaffold( key: homeScaffoldKey, extendBody: true, |