|
|
|
|
@ -98,30 +98,33 @@ class _CustomCountryDropdownState extends State<CustomCountryDropdown> {
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
LocaleKeys.phoneNumber.tr(),
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, height: 21 / 12, fontWeight: FontWeight.w500, letterSpacing: -1),
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, height: 1.2.h, fontWeight: FontWeight.w500, letterSpacing: -1),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
selectedCountry!.countryCode,
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, height: 23 / 18, fontWeight: FontWeight.w600, letterSpacing: -1),
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, fontWeight: FontWeight.w600, letterSpacing: -0.4, height: 1.5),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 4.h),
|
|
|
|
|
if (widget.isEnableTextField)
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
width: 200,
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
height: 20.h,
|
|
|
|
|
width: 200.h,
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
child: TextField(
|
|
|
|
|
focusNode: textFocusNode,
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, height: 23 / 18, fontWeight: FontWeight.w600, letterSpacing: -1),
|
|
|
|
|
decoration: InputDecoration(hintText: "", isDense: false, border: InputBorder.none),
|
|
|
|
|
style: TextStyle(fontSize: 12.fSize, fontWeight: FontWeight.w600, letterSpacing: -0.4, height: 1.5),
|
|
|
|
|
decoration: InputDecoration(hintText: "", isDense: true, border: InputBorder.none, contentPadding: EdgeInsets.zero),
|
|
|
|
|
keyboardType: TextInputType.phone,
|
|
|
|
|
onChanged: widget.onPhoneNumberChanged),
|
|
|
|
|
onChanged: widget.onPhoneNumberChanged,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
@ -134,7 +137,7 @@ class _CustomCountryDropdownState extends State<CustomCountryDropdown> {
|
|
|
|
|
? appState.getLanguageCode() == "ar"
|
|
|
|
|
? selectedCountry!.nameArabic
|
|
|
|
|
: selectedCountry!.displayName
|
|
|
|
|
: "Select Country",
|
|
|
|
|
: LocaleKeys.selectCountry.tr(),
|
|
|
|
|
style: TextStyle(fontSize: 14.fSize, height: 21 / 14, fontWeight: FontWeight.w500, letterSpacing: -0.2),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|