fix for signup router

This commit is contained in:
Arseni
2026-02-05 12:00:05 +03:00
parent 81ffdd4291
commit e4fb270390
5 changed files with 6 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ class _LoginFormState extends State<LoginForm> {
builder: (context, isUsernameValid, child) => ValueListenableBuilder<bool>(
valueListenable: _isPasswordAcceptable,
builder: (context, isPasswordValid, child) => ButtonsRow(
onSignUp: () => navigate(context, Pages.signup),
onSignUp: () => navigateAndReplace(context, Pages.signup),
login: () => _login(
context,
() => navigateAndReplace(context, Pages.dashboard),

View File

@@ -34,7 +34,7 @@ class SignUpFormContent extends StatelessWidget {
Row(
children: [
IconButton(
onPressed: Navigator.of(context).pop,
onPressed: onLogin,
icon: Icon(Icons.arrow_back),
),
],
@@ -59,4 +59,4 @@ class SignUpFormContent extends StatelessWidget {
),
),
);
}
}

View File

@@ -105,7 +105,7 @@ class SignUpFormState extends State<SignUpForm> {
),
);
void handleLogin() => navigate(context, Pages.login);
void handleLogin() => navigateAndReplace(context, Pages.login);
@override
void dispose() {