Fix Flutter code quality issues
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2025-07-18 18:01:25 +02:00
parent 6f578b39f9
commit b2aff4902d

View File

@@ -75,20 +75,20 @@ GoRouter router(Ref ref) {
debugLogDiagnostics: true, debugLogDiagnostics: true,
initialLocation: prefs.startOnScansListScreen() ? scansPage : capturePage, initialLocation: prefs.startOnScansListScreen() ? scansPage : capturePage,
routes: [ routes: [
GoRoute(path: homePage, builder: (_, __) => const Scaffold()), GoRoute(path: homePage, builder: (_, _) => const Scaffold()),
GoRoute(path: authPage, builder: (_, __) => const LoginScreen()), GoRoute(path: authPage, builder: (_, _) => const LoginScreen()),
GoRoute(path: qrAuthPath, builder: (_, __) => const QrAuthScreen()), GoRoute(path: qrAuthPath, builder: (_, _) => const QrAuthScreen()),
GoRoute( GoRoute(
path: manualAuthPage, 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 // Configuration for the bottom navigation bar routes. The routes themselves
// should be defined in [navigationItems]. Modification to this [ShellRoute] // should be defined in [navigationItems]. Modification to this [ShellRoute]
// config is rarely needed. // config is rarely needed.
ShellRoute( ShellRoute(
builder: (_, __, child) => child, builder: (_, _, child) => child,
routes: [ routes: [
for (final (index, item) in navigationItems.indexed) for (final (index, item) in navigationItems.indexed)
GoRoute( GoRoute(