Fix TextEditingController was used after being disposed in LoginView
(cherry picked from commit 16d0c8b5db6e5829836a87afb66769698236c837)
This commit is contained in:
@@ -279,13 +279,10 @@ abstract class BaseController extends GetxController
|
||||
bool _isFcmActivated(Session session, AccountId accountId) =>
|
||||
[FirebaseCapability.fcmIdentifier].isSupported(session, accountId) && AppConfig.fcmAvailable;
|
||||
|
||||
void goToLogin({LoginArguments? arguments}) async {
|
||||
await Future.delayed(
|
||||
const Duration(milliseconds: 500),
|
||||
() async {
|
||||
await pushAndPopAll(AppRoutes.login, arguments: arguments);
|
||||
}
|
||||
);
|
||||
void goToLogin({LoginArguments? arguments}) {
|
||||
if (Get.currentRoute != AppRoutes.login) {
|
||||
pushAndPopAll(AppRoutes.login, arguments: arguments);
|
||||
}
|
||||
}
|
||||
|
||||
void logout(Session? session, AccountId? accountId) {
|
||||
|
||||
@@ -54,7 +54,7 @@ class LoginBindings extends BaseBindings {
|
||||
|
||||
@override
|
||||
void bindingsController() {
|
||||
Get.lazyPut(() => LoginController(
|
||||
Get.create(() => LoginController(
|
||||
Get.find<GetAuthenticatedAccountInteractor>(),
|
||||
Get.find<UpdateAuthenticationAccountInteractor>(),
|
||||
Get.find<AuthenticationInteractor>(),
|
||||
|
||||
Reference in New Issue
Block a user