diff --git a/lib/components/login_form.dart b/lib/components/login_form.dart index 525c953..25d16a3 100644 --- a/lib/components/login_form.dart +++ b/lib/components/login_form.dart @@ -5,6 +5,7 @@ import 'package:nekoya_flutter/api/api.dart'; import 'package:nekoya_flutter/components/login_error.dart'; import 'package:nekoya_flutter/components/menu.dart'; import 'package:nekoya_flutter/data/auth.dart'; +import 'package:nekoya_flutter/screens/register.dart'; import 'package:nekoya_flutter/utils/utils.dart'; class LoginForm extends StatefulWidget { @@ -193,8 +194,8 @@ class LoginFormState extends State { Widget _buildSignupBtn() { return GestureDetector( onTap: () { - Navigator.of(context).pushReplacement(MaterialPageRoute( - builder: (context) => const Menu(initialScreen: 1))); + Navigator.pop(context); + Navigator.push(context, MaterialPageRoute(builder: (context) => const Register())); }, child: RichText( text: const TextSpan(