|
|
|
|
@ -88,7 +88,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: ColorConsts.secondaryWhite,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
padding: EdgeInsets.all(32.0),
|
|
|
|
|
padding: EdgeInsets.all(21.0),
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
|
@ -143,7 +143,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
CommonTextFieldWidget(
|
|
|
|
|
hint: " رقم الجوال${" (" + (_selectedCountry?.countryCode ?? "+9xx") + " xxxxxxxxx)"}",
|
|
|
|
|
hint: " رقم الجوال (اختياري)${" (" + (_selectedCountry?.countryCode ?? "+9xx") + " xxxxxxxxx)"}",
|
|
|
|
|
controller: _mobileNumberController,
|
|
|
|
|
suffixWidget: Text(_selectedCountry?.countryCode ?? "", textDirection: TextDirection.ltr),
|
|
|
|
|
),
|
|
|
|
|
@ -195,10 +195,12 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
|
Utils.showToast("يرجى اختيار الدولة");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (_mobileNumberController.text.length < 1) {
|
|
|
|
|
Utils.showToast("يرجى إدخال رقم الجوال");
|
|
|
|
|
return;
|
|
|
|
|
} else if (_mobileNumberController.text.length < 8 || _mobileNumberController.text.length > 12) {
|
|
|
|
|
// if (_mobileNumberController.text.length < 1) {
|
|
|
|
|
// Utils.showToast("يرجى إدخال رقم الجوال");
|
|
|
|
|
// return;
|
|
|
|
|
// } else
|
|
|
|
|
|
|
|
|
|
if (_mobileNumberController.text.isNotEmpty && (_mobileNumberController.text.length < 8 || _mobileNumberController.text.length > 12)) {
|
|
|
|
|
Utils.showToast("رقم الهاتف غير صحيح");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|