mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 09:20:31 -07:00
fix: Incorrect routing login/lock screen
This commit is contained in:
parent
b9e817d582
commit
8ec4c79ad3
2 changed files with 3 additions and 2 deletions
|
|
@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:iconsax_plus/iconsax_plus.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:iconsax_plus/iconsax_plus.dart';
|
||||
|
||||
import 'package:fladder/models/account_model.dart';
|
||||
import 'package:fladder/providers/user_provider.dart';
|
||||
|
|
@ -105,7 +105,7 @@ class _LockScreenState extends ConsumerState<LockScreen> with WidgetsBindingObse
|
|||
tooltip: context.localized.login,
|
||||
onPressed: () {
|
||||
ref.read(lockScreenActiveProvider.notifier).update((state) => false);
|
||||
context.router.push(const LoginRoute());
|
||||
context.router.replaceAll([const LoginRoute()]);
|
||||
},
|
||||
child: const Icon(IconsaxPlusLinear.arrow_swap_horizontal),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue