Fix register routing
This commit is contained in:
parent
56b3f6d077
commit
6eab74796b
1 changed files with 3 additions and 2 deletions
|
@ -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<LoginForm> {
|
|||
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(
|
||||
|
|
Loading…
Reference in a new issue