api integration

This commit is contained in:
jayesh
2024-07-17 19:12:26 +05:30
parent 1e47dd914a
commit fab01aa29a
54 changed files with 1022 additions and 356 deletions

View File

@@ -1,17 +1,4 @@
import 'package:tanami_app/core/styles/app_images.dart';
import 'package:tanami_app/core/styles/app_text.dart';
List<String> title = [
AppText.step1,
AppText.step2,
AppText.step3,
];
List<String> description = [
AppText.enterYourCountryOfResidence,
AppText.enterNameEmailPassword,
AppText.enableBiometricAuthentication,
];
List<String> stepImage = [
AppImages.step1Image,

View File

@@ -0,0 +1,30 @@
class PhoneNumberHintGenerator {
String formatPhoneNumber(String code, int length) {
switch (code) {
case "+973":
return "000 000 00";
case "+965":
return "0000 0000";
case "+968":
return "000 00 000";
case "+974":
return "000 000 00";
case "+966":
return "000 000 000";
case "+971":
return "00 000 0000";
default:
return List.generate(length, (index) => '0').join('');
}
}
// Map of country codes to phone number lengths
final Map<String, int> countryPhoneLengths = {
"+973": 8, // Bahrain
"+965": 8, // Kuwait
"+968": 8, // Oman
"+974": 8, // Qatar
"+966": 9, // Saudi Arabia
"+971": 9, // United Arab Emirates
};
}