This commit is contained in:
2026-07-12 04:33:48 +08:00
parent f8a90ad305
commit e7ce0f7bae
151 changed files with 2765 additions and 2947 deletions

View File

@@ -3,10 +3,9 @@ import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
class ImageViewer extends StatefulWidget {
final Key key;
final ImageProvider imageProvider;
ImageViewer(this.imageProvider, {this.key}) :
ImageViewer(this.imageProvider, {Key? key}) :
super(key: key);
@override

View File

@@ -33,18 +33,15 @@ AlertDialog logoutDialog(BuildContext context) {
.yes_i_am_sure),
onPressed: () {
Navigator.of(context).pop();
Utils.getBox().then((box) {
box.delete(Constants.KEY_USER_ID);
box.delete(
Constants.KEY_ACCESS_TOKEN);
store.dispatch(
new UpdateCurrentUser(null));
eventBus.fire(
new OnCurrentUserUpdated());
Routes.router.navigateTo(
context, '/', replace: true,
clearStack: true);
});
Utils.prefs?.remove(Constants.KEY_USER_ID);
Utils.prefs?.remove(Constants.KEY_ACCESS_TOKEN);
store.dispatch(
new UpdateCurrentUser(null));
eventBus.fire(
new OnCurrentUserUpdated());
Routes.router.navigateTo(
context, '/', replace: true,
clearStack: true);
},
)
],