ultimos cambios
This commit is contained in:
@@ -5,7 +5,7 @@ import 'package:get/get.dart';
|
||||
import 'package:google_sign_in/google_sign_in.dart';
|
||||
import 'package:prosappco/src/authentication/exceptions/register_failed.dart';
|
||||
import 'package:prosappco/src/screens/login.dart';
|
||||
import 'package:prosappco/src/screens/welcome.dart';
|
||||
import 'package:prosappco/src/screens/service.dart';
|
||||
|
||||
class AuthenticationRepository extends GetxController {
|
||||
static AuthenticationRepository get instance => Get.find();
|
||||
@@ -29,7 +29,7 @@ class AuthenticationRepository extends GetxController {
|
||||
_setInitialScreen(User? user) {
|
||||
user == null
|
||||
? Get.offAll(const LoginScreen())
|
||||
: Get.offAll(const WelcomeScreen());
|
||||
: Get.offAll(const ServiceScreen());
|
||||
}
|
||||
|
||||
Future<void> phoneAuthentication(String phoneNo) async {
|
||||
@@ -79,7 +79,7 @@ class AuthenticationRepository extends GetxController {
|
||||
email: email, password: password);
|
||||
|
||||
firebaseUser.value != null
|
||||
? Get.offAll(WelcomeScreen())
|
||||
? Get.offAll(ServiceScreen())
|
||||
: Get.to(LoginScreen());
|
||||
} on FirebaseAuthException catch (e) {
|
||||
final ex = SignUpWithEmailAndPasswordFailure.code(e.code);
|
||||
|
||||
Reference in New Issue
Block a user