Fix pop may call multiple times

This commit is contained in:
2024-06-02 14:03:33 +00:00
committed by GitHub
parent ca8fb15f0e
commit 727d3ecbe3
4 changed files with 7 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ class _NewUserPage extends State<NewUserPage> {
SchedulerBinding.instance.addPostFrameCallback((_) {
context.canPop() ? context.pop() : context.go("/users");
});
_newUserId = null;
return Container();
}
final i18n = AppLocalizations.of(context)!;