Skip to content

Commit

Permalink
fix infinite routes stacking sign in and sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMaglione committed Aug 6, 2022
1 parent 90255a4 commit 2176a44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/app/pages/sign_up_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_supabase_complete/app/repository/auth_repository.dart';
import 'package:flutter_supabase_complete/core/routes/app_router.dart';
import 'package:flutter_supabase_complete/injectable.dart';

class SignUpPage extends StatefulWidget {
Expand Down Expand Up @@ -63,6 +62,6 @@ class _SignUpPageState extends State<SignUpPage> {
}

void _onClickGoToSignIn(BuildContext context) {
context.router.push(const SignInRoute());
context.router.pop();
}
}

0 comments on commit 2176a44

Please sign in to comment.