chore(dep): update auto_route (#6390)

* chore(dep): update auto_route

* chore: rebase main

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2024-01-15 16:50:33 +00:00
committed by GitHub
parent 984feafb90
commit ba5cca9348
48 changed files with 1473 additions and 1646 deletions

View File

@@ -90,7 +90,7 @@ class ChangePasswordForm extends HookConsumerWidget {
.clearAllAsset();
ref.read(websocketProvider.notifier).disconnect();
AutoRouter.of(context).navigateBack();
AutoRouter.of(context).back();
ImmichToast.show(
context: context,
@@ -111,7 +111,7 @@ class ChangePasswordForm extends HookConsumerWidget {
),
TextButton.icon(
icon: const Icon(Icons.arrow_back),
onPressed: () => AutoRouter.of(context).navigateBack(),
onPressed: () => AutoRouter.of(context).back(),
label: const Text('Back'),
),
],

View File

@@ -1,7 +1,9 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/modules/login/ui/change_password_form.dart';
@RoutePage()
class ChangePasswordPage extends HookConsumerWidget {
const ChangePasswordPage({Key? key}) : super(key: key);

View File

@@ -7,6 +7,7 @@ import 'package:immich_mobile/modules/login/ui/login_form.dart';
import 'package:immich_mobile/routing/router.dart';
import 'package:package_info_plus/package_info_plus.dart';
@RoutePage()
class LoginPage extends HookConsumerWidget {
const LoginPage({Key? key}) : super(key: key);