Fix Flutter code quality issues
This commit is contained in:
@@ -75,20 +75,20 @@ GoRouter router(Ref ref) {
|
||||
debugLogDiagnostics: true,
|
||||
initialLocation: prefs.startOnScansListScreen() ? scansPage : capturePage,
|
||||
routes: [
|
||||
GoRoute(path: homePage, builder: (_, __) => const Scaffold()),
|
||||
GoRoute(path: authPage, builder: (_, __) => const LoginScreen()),
|
||||
GoRoute(path: qrAuthPath, builder: (_, __) => const QrAuthScreen()),
|
||||
GoRoute(path: homePage, builder: (_, _) => const Scaffold()),
|
||||
GoRoute(path: authPage, builder: (_, _) => const LoginScreen()),
|
||||
GoRoute(path: qrAuthPath, builder: (_, _) => const QrAuthScreen()),
|
||||
GoRoute(
|
||||
path: manualAuthPage,
|
||||
builder: (_, __) => const ManualAuthScreen(),
|
||||
builder: (_, _) => const ManualAuthScreen(),
|
||||
),
|
||||
GoRoute(path: settingsPage, builder: (_, __) => const SettingsScreen()),
|
||||
GoRoute(path: settingsPage, builder: (_, _) => const SettingsScreen()),
|
||||
|
||||
// Configuration for the bottom navigation bar routes. The routes themselves
|
||||
// should be defined in [navigationItems]. Modification to this [ShellRoute]
|
||||
// config is rarely needed.
|
||||
ShellRoute(
|
||||
builder: (_, __, child) => child,
|
||||
builder: (_, _, child) => child,
|
||||
routes: [
|
||||
for (final (index, item) in navigationItems.indexed)
|
||||
GoRoute(
|
||||
|
Reference in New Issue
Block a user