Skip to content

Commit 5f94d48

Browse files
committed
style: format
1 parent aca2b62 commit 5f94d48

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

lib/authentication/view/request_code_page.dart

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,19 @@ class _RequestCodeView extends StatelessWidget {
6868
// Navigate to the code verification page on success, passing the email.
6969
// The current route's parent will determine if this is for linking
7070
// or standard authentication.
71-
final currentRouteName = GoRouter.of(context).routerDelegate.currentConfiguration.last.route.name;
71+
final currentRouteName = GoRouter.of(
72+
context,
73+
).routerDelegate.currentConfiguration.last.route.name;
7274
if (currentRouteName == Routes.accountLinkingRequestCodeName) {
73-
context.goNamed(Routes.accountLinkingVerifyCodeName, pathParameters: {'email': state.email!});
75+
context.goNamed(
76+
Routes.accountLinkingVerifyCodeName,
77+
pathParameters: {'email': state.email!},
78+
);
7479
} else {
75-
context.goNamed(Routes.verifyCodeName, pathParameters: {'email': state.email!});
80+
context.goNamed(
81+
Routes.verifyCodeName,
82+
pathParameters: {'email': state.email!},
83+
);
7684
}
7785
}
7886
},

lib/router/router.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ import 'package:go_router/go_router.dart';
5555
/// authentication state changes.
5656
///
5757
///
58-
/// With the current App startup architecture, the router is only active
58+
/// With the current App startup architecture, the router is only active
5959
/// when the app is in a stable, running state. The `redirect` function's
6060
/// only responsibility is to handle auth-based route protection.
61-
/// States like `configFetching`, `underMaintenance`, etc., are handled
61+
/// States like `configFetching`, `underMaintenance`, etc., are handled
6262
/// by the root App widget *before* this router is ever built.
6363
6464
GoRouter createRouter({

lib/status/view/update_required_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class UpdateRequiredPage extends StatelessWidget {
6262
style: theme.textTheme.bodyLarge,
6363
textAlign: TextAlign.center,
6464
),
65-
if (currentAppVersion != null && latestRequiredVersion != null) ...[
65+
if (currentAppVersion != null &&
66+
latestRequiredVersion != null) ...[
6667
const SizedBox(height: AppSpacing.md),
6768
Text(
6869
l10n.currentAppVersionLabel(currentAppVersion!),

0 commit comments

Comments
 (0)