diff --git a/lib/main.dart b/lib/main.dart
index b793cc64c..e5650dc38 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -6,13 +6,11 @@ import 'package:lantern/common/common.dart';
 Future<void> main() async {
   // CI will be true only when running appium test
   var CI = const String.fromEnvironment('CI', defaultValue: 'false');
-  var boolCI = const String.fromEnvironment("ci", defaultValue: 'false');
+  var boolCI =  const bool.fromEnvironment("ci", defaultValue: false);
   print('Appium CI is running $CI and bool $boolCI');
-
   if (CI == 'true') {
     enableFlutterDriverExtension();
   }
-
   WidgetsFlutterBinding.ensureInitialized();
   await _initGoogleMobileAds();
   await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);