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

@@ -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);
},
)
],