main function
Implementation
Future<void> main() async {
Get.lazyPut(() => Reflector());
initializeReflectable(); // Set up reflection support.
await GetStorage.init();
final box = GetStorage();
var page = AppPages.INITIAL;
if (box.read('antodis_jwt_token') == null) {
page = AppPages.LOGIN;
}
runApp(
GetMaterialApp(
title: "Application",
debugShowCheckedModeBanner: false,
initialRoute: page,
getPages: AppPages.routes,
themeMode: ThemeMode.dark,
theme: antodisThemeLight,
darkTheme: antodisThemeDark,
),
);
}