mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 09:12:56 +02:00
Implemented load new image when navigating back from backup page (#9)
This commit is contained in:
parent
1d3ee2008c
commit
c24fb403c5
12 changed files with 133 additions and 38 deletions
mobile/lib/modules/home/ui
|
@ -1,12 +1,9 @@
|
|||
import 'package:auto_route/annotations.dart';
|
||||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/src/widgets/framework.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/modules/home/providers/asset.provider.dart';
|
||||
import 'package:immich_mobile/modules/login/models/authentication_state.model.dart';
|
||||
import 'package:immich_mobile/modules/login/providers/authentication.provider.dart';
|
||||
import 'package:immich_mobile/routing/router.dart';
|
||||
|
||||
class ProfileDrawer extends ConsumerWidget {
|
||||
const ProfileDrawer({Key? key}) : super(key: key);
|
||||
|
@ -58,6 +55,7 @@ class ProfileDrawer extends ConsumerWidget {
|
|||
),
|
||||
onTap: () async {
|
||||
bool res = await ref.read(authenticationProvider.notifier).logout();
|
||||
|
||||
ref.read(assetProvider.notifier).clearAllAsset();
|
||||
|
||||
if (res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue