fix
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-22 10:57:46 -05:00
parent 9fd5b7c03f
commit 143a41588f

View File

@ -26,7 +26,15 @@ class _AuthScreenState extends State<AuthScreen> {
body: Consumer<Auth>(
builder: (context, auth, _) {
if (auth.authenticated) {
Navigator.of(context).pushReplacementNamed('/');
Future.delayed(Duration(milliseconds: 1), () {
if (constants.navigatorKey.currentContext == null) {
return;
}
Navigator.of(
constants.navigatorKey.currentContext!,
).pushNamedAndRemoveUntil('/', (Route<dynamic> route) => false);
});
return SizedBox.shrink();
}