✨ Create, edit, list publishers
This commit is contained in:
@ -158,8 +158,9 @@ class _LoginCheckScreenState extends State<_LoginCheckScreen> {
|
||||
context.showSnackbar('loginSuccess'.tr(args: [
|
||||
'@${userinfo!.name} (${userinfo.nick})',
|
||||
]));
|
||||
|
||||
Navigator.pop(context);
|
||||
await Future.delayed(const Duration(milliseconds: 1850), () {
|
||||
Navigator.pop(context);
|
||||
});
|
||||
} catch (err) {
|
||||
context.showErrorDialog(err);
|
||||
return;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:styled_widget/styled_widget.dart';
|
||||
@ -43,9 +44,7 @@ class _RegisterScreenState extends State<RegisterScreen> {
|
||||
|
||||
if (!mounted) return;
|
||||
|
||||
// TODO make celebration here
|
||||
// ignore: use_build_context_synchronously
|
||||
Navigator.pop(context);
|
||||
GoRouter.of(context).replaceNamed("authLogin");
|
||||
} catch (err) {
|
||||
context.showErrorDialog(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user