@@ -44,15 +44,17 @@ Future<void> main() async {
4444 if (currentPlatform.isDesktop) {
4545 await windowManager.ensureInitialized ();
4646 windowManager.waitUntilReadyToShow (
47- const WindowOptions (
48- title: App .appName,
49- size: Size (800 , 600 ),
50- minimumSize: Size (400 , 400 ),
51- center: true ,
52- ), () async {
53- await windowManager.show ();
54- await windowManager.focus ();
55- });
47+ const WindowOptions (
48+ title: App .appName,
49+ size: Size (800 , 600 ),
50+ minimumSize: Size (400 , 400 ),
51+ center: true ,
52+ ),
53+ () async {
54+ await windowManager.show ();
55+ await windowManager.focus ();
56+ },
57+ );
5658 }
5759 if (isFirebaseSupported) {
5860 await Firebase .initializeApp (options: DefaultFirebaseOptions .currentPlatform);
@@ -79,10 +81,10 @@ Future<void> main() async {
7981class _OpenAuthenticatorSSSInitializationOptions extends InitializationOptions {
8082 /// Creates a new Open Authenticator SimpleSecureStorage initialization options.
8183 _OpenAuthenticatorSSSInitializationOptions ()
82- : super (
83- appName: App .appName + (kDebugMode ? ' Debug' : '' ),
84- namespace: App .appPackageName + (kDebugMode ? '.debug' : '' ),
85- );
84+ : super (
85+ appName: App .appName + (kDebugMode ? ' Debug' : '' ),
86+ namespace: App .appPackageName + (kDebugMode ? '.debug' : '' ),
87+ );
8688}
8789
8890/// The main widget class.
@@ -105,25 +107,25 @@ class OpenAuthenticatorApp extends ConsumerWidget {
105107 Locale locale = TranslationProvider .of (context).flutterLocale;
106108 return switch (showIntro) {
107109 AsyncData (: bool value) => _createMaterialApp (
108- showIntroState: 'data' ,
109- theme: theme,
110- locale: locale,
111- initialRoute: value ? IntroPage .name : HomePage .name,
112- ),
110+ showIntroState: 'data' ,
111+ theme: theme,
112+ locale: locale,
113+ initialRoute: value ? IntroPage .name : HomePage .name,
114+ ),
113115 AsyncError (: final error) => _createMaterialApp (
114- showIntroState: 'error' ,
115- theme: theme,
116- locale: locale,
117- home: Center (
118- child: Text ('Error : $error .' ),
119- ),
116+ showIntroState: 'error' ,
117+ theme: theme,
118+ locale: locale,
119+ home: Center (
120+ child: Text ('Error : $error .' ),
120121 ),
122+ ),
121123 _ => _createMaterialApp (
122- showIntroState: 'loading' ,
123- theme: theme,
124- locale: locale,
125- home: const CenteredCircularProgressIndicator (),
126- ),
124+ showIntroState: 'loading' ,
125+ theme: theme,
126+ locale: locale,
127+ home: const CenteredCircularProgressIndicator (),
128+ ),
127129 };
128130 }
129131
@@ -207,19 +209,19 @@ class OpenAuthenticatorApp extends ConsumerWidget {
207209 routes: home == null
208210 ? {
209211 IntroPage .name: (_) => const _RouteWidget (
210- child: IntroPage (),
211- ),
212+ child: IntroPage (),
213+ ),
212214 HomePage .name: (_) => const _RouteWidget (
213- listen: true ,
214- rateMyApp: true ,
215- child: HomePage (),
216- ),
215+ listen: true ,
216+ rateMyApp: true ,
217+ child: HomePage (),
218+ ),
217219 ScanPage .name: (_) => const _RouteWidget (
218- child: ScanPage (),
219- ),
220+ child: ScanPage (),
221+ ),
220222 SettingsPage .name: (_) => const _RouteWidget (
221- child: SettingsPage (),
222- ),
223+ child: SettingsPage (),
224+ ),
223225 TotpPage .name: (context) {
224226 Map <String , dynamic >? arguments = ModalRoute .of (context)! .settings.arguments as Map <String , dynamic >? ;
225227 return _RouteWidget (
@@ -230,8 +232,8 @@ class OpenAuthenticatorApp extends ConsumerWidget {
230232 );
231233 },
232234 ContributorPlanPaywallPage .name: (_) => const _RouteWidget (
233- child: ContributorPlanPaywallPage (),
234- ),
235+ child: ContributorPlanPaywallPage (),
236+ ),
235237 }
236238 : {},
237239 initialRoute: home == null ? initialRoute : null ,
@@ -317,8 +319,8 @@ class _RouteWidgetState extends ConsumerState<_RouteWidget> {
317319
318320 @override
319321 Widget build (BuildContext context) => UnlockChallengeWidget (
320- child: widget.child,
321- );
322+ child: widget.child,
323+ );
322324
323325 /// Handles a login link.
324326 Future <void > handleLoginLink (Uri loginLink) async {
0 commit comments