Skip to content

Commit

Permalink
fix: remove old login screen (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Aladdiin authored Dec 23, 2024
1 parent 64fb72b commit c325524
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/features/auth/view/screens/log_in_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _LogInScreenState extends ConsumerState<LogInScreen> {
context.go(Routes.home);
} else if (state.type == AuthStateType.unverified) {
ref.read(emailProvider.notifier).update((_) => emailController.text);
context.push(
context.pushReplacement(
Routes.verification,
extra: {'sendVerificationCode': true}, // or false based on your logic
);
Expand Down Expand Up @@ -130,7 +130,8 @@ class _LogInScreenState extends ConsumerState<LogInScreen> {

@override
Widget build(BuildContext context) {
ref.listen<AuthState>(authViewModelProvider, (_, state) => handelState(state));
ref.listen<AuthState>(
authViewModelProvider, (_, state) => handelState(state));

bool isLoading =
ref.watch(authViewModelProvider).type == AuthStateType.loading;
Expand Down Expand Up @@ -200,7 +201,7 @@ class _LogInScreenState extends ConsumerState<LogInScreen> {
AuthSubTextButton(
buttonKey: Keys.logIn#Key,
onPressed: () {
context.push(Routes.#);
context.pushReplacement(Routes.#);
},
label: '#',
),
Expand Down

0 comments on commit c325524

Please # to comment.