BASE: Update Icons & Name Of The App.

This commit is contained in:
2025-12-04 10:23:59 +05:00
parent b04050384d
commit e602782edd
228 changed files with 34364 additions and 7905 deletions

View File

@@ -2,14 +2,15 @@ import 'package:customer/themes/show_toast_dialog.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get.dart' hide Trans;
import '../constant/constant.dart';
import '../screen_ui/auth_screens/otp_verification_screen.dart';
class MobileLoginController extends GetxController {
final Rx<TextEditingController> mobileController = TextEditingController().obs;
final Rx<TextEditingController> countryCodeController = TextEditingController(text: Constant.defaultCountryCode).obs;
final Rx<TextEditingController> mobileController =
TextEditingController().obs;
final Rx<TextEditingController> countryCodeController =
TextEditingController(text: Constant.defaultCountryCode).obs;
final FirebaseAuth _auth = FirebaseAuth.instance;
@@ -19,7 +20,9 @@ class MobileLoginController extends GetxController {
final countryCode = countryCodeController.value.text.trim();
if (mobile.isEmpty || mobile.length != 10) {
ShowToastDialog.showToast("Please enter a valid 10-digit mobile number".tr());
ShowToastDialog.showToast(
"Please enter a valid 10-digit mobile number".tr(),
);
return;
}
@@ -36,12 +39,21 @@ class MobileLoginController extends GetxController {
if (e.code == 'invalid-phone-number') {
ShowToastDialog.showToast("Invalid phone number".tr());
} else {
ShowToastDialog.showToast(e.message ?? "OTP verification failed".tr());
ShowToastDialog.showToast(
e.message ?? "OTP verification failed".tr(),
);
}
},
codeSent: (String verificationId, int? resendToken) {
ShowToastDialog.closeLoader();
Get.to(() => const OtpVerificationScreen(), arguments: {'countryCode': countryCode, 'phoneNumber': mobile, 'verificationId': verificationId});
Get.to(
() => const OtpVerificationScreen(),
arguments: {
'countryCode': countryCode,
'phoneNumber': mobile,
'verificationId': verificationId,
},
);
},
codeAutoRetrievalTimeout: (String verificationId) {
ShowToastDialog.closeLoader();