diff --git a/lib/main.dart b/lib/main.dart index 16e908fc..1b04827a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -42,19 +42,15 @@ Future initializeApp() async { _initializeSystemSettings(); await _initializeFlutterFlow(); } - Future _initializeStorageHelpers() async { await StorageUtil().ensureInitialization(); } - Future _initializeTracking() async { await AppTrackingTransparency.requestTrackingAuthorization(); } - Future _initializeFirebase() async { await Firebase.initializeApp(); } - Future _initializeNotificationService() async { await NotificationService.initialize(); } @@ -62,7 +58,6 @@ Future _initializeNotificationService() async { void _initializeUrlStrategy() { setUrlStrategy(PathUrlStrategy()); } - void _initializeSystemSettings() { SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); if (kDebugMode) { @@ -81,7 +76,6 @@ Future _initializeFlutterFlow() async { GoRouter.optionURLReflectsImperativeAPIs = true; usePathUrlStrategy(); } - Future _foregroundHandlerMessage(RemoteMessage message) async { if (message.data['click_action'] == 'enroll_cond') { StorageUtil().haveLocal = true; @@ -94,7 +88,6 @@ Future _foregroundHandlerMessage(RemoteMessage message) async { payload: Map.from(message.data)); } } - Future _backgroundHandlerMessage(RemoteMessage message) async { if (message.data['click_action'] == 'enroll_cond') { log('backgroundHandlerMessage'); @@ -111,7 +104,6 @@ class App extends StatefulWidget { static _AppState of(BuildContext context) => context.findAncestorStateOfType<_AppState>()!; } - class _AppState extends State with WidgetsBindingObserver { Locale? _locale = FFLocalizations.getStoredLocale(); ThemeMode _themeMode = FlutterFlowTheme.themeMode; @@ -302,3 +294,4 @@ class _AppState extends State with WidgetsBindingObserver { ); } } +