check phone impl
This commit is contained in:
@@ -6,3 +6,10 @@ void dismissKeyboard(BuildContext context) {
|
||||
FocusManager.instance.primaryFocus?.unfocus();
|
||||
}
|
||||
}
|
||||
|
||||
String getNormalizePhone(String phoneNumber) {
|
||||
final normalizedPhone = phoneNumber.startsWith('08')
|
||||
? phoneNumber.replaceFirst('0', '')
|
||||
: phoneNumber;
|
||||
return '62$normalizedPhone';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user