@@ -85,18 +85,16 @@ class FirebaseAuthUIExample extends StatelessWidget {
8585 ),
8686 );
8787
88- final mfaAction = AuthStateChangeAction <MFARequired >(
89- (context, state) async {
90- final nav = Navigator .of (context);
88+ final mfaAction = AuthStateChangeAction <MFARequired >((
89+ context,
90+ state,
91+ ) async {
92+ final nav = Navigator .of (context);
9193
92- await startMFAVerification (
93- resolver: state.resolver,
94- context: context,
95- );
94+ await startMFAVerification (resolver: state.resolver, context: context);
9695
97- nav.pushReplacementNamed ('/profile' );
98- },
99- );
96+ nav.pushReplacementNamed ('/profile' );
97+ });
10098
10199 return MaterialApp (
102100 theme: ThemeData (
@@ -224,14 +222,15 @@ class FirebaseAuthUIExample extends StatelessWidget {
224222 );
225223 },
226224 '/sms' : (context) {
227- final arguments = ModalRoute .of (context)? .settings.arguments
228- as Map <String , dynamic >? ;
225+ final arguments =
226+ ModalRoute .of (context)? .settings.arguments
227+ as Map <String , dynamic >? ;
229228
230229 return SMSCodeInputScreen (
231230 actions: [
232231 AuthStateChangeAction <SignedIn >((context, state) {
233232 Navigator .of (context).pushReplacementNamed ('/profile' );
234- })
233+ }),
235234 ],
236235 flowKey: arguments? ['flowKey' ],
237236 action: arguments? ['action' ],
@@ -240,8 +239,9 @@ class FirebaseAuthUIExample extends StatelessWidget {
240239 );
241240 },
242241 '/forgot-password' : (context) {
243- final arguments = ModalRoute .of (context)? .settings.arguments
244- as Map <String , dynamic >? ;
242+ final arguments =
243+ ModalRoute .of (context)? .settings.arguments
244+ as Map <String , dynamic >? ;
245245
246246 return ForgotPasswordScreen (
247247 email: arguments? ['email' ],
@@ -274,7 +274,8 @@ class FirebaseAuthUIExample extends StatelessWidget {
274274 mfaAction,
275275 ],
276276 actionCodeSettings: actionCodeSettings,
277- showMFATile: kIsWeb ||
277+ showMFATile:
278+ kIsWeb ||
278279 platform == TargetPlatform .iOS ||
279280 platform == TargetPlatform .android,
280281 showUnlinkConfirmationDialog: true ,
@@ -375,10 +376,7 @@ class _AppTrackingTransparencyCardState
375376 children: [
376377 const Text ('App tracking allowed' ),
377378 const SizedBox (width: 12 ),
378- Switch (
379- value: _isAllowed,
380- onChanged: _onToggleChanged,
381- ),
379+ Switch (value: _isAllowed, onChanged: _onToggleChanged),
382380 ],
383381 ),
384382 );
0 commit comments