|
|
|
@ -49,6 +49,14 @@ class _AddNewServiceAppointmentPageState extends State<AddNewServiceAppointmentP
|
|
|
|
List<PickerItem>? pickedItems;
|
|
|
|
List<PickerItem>? pickedItems;
|
|
|
|
ServiceVM? serviceVM;
|
|
|
|
ServiceVM? serviceVM;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Currency dropdown
|
|
|
|
|
|
|
|
DropValue? selectedCurrency;
|
|
|
|
|
|
|
|
List<DropValue> currencies = [
|
|
|
|
|
|
|
|
DropValue(1, 'SAR', 'SAR'),
|
|
|
|
|
|
|
|
DropValue(2, 'AED', 'AED'),
|
|
|
|
|
|
|
|
DropValue(3, 'USD', 'USD'),
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
// TODO: implement initState
|
|
|
|
// TODO: implement initState
|
|
|
|
@ -142,13 +150,11 @@ class _AddNewServiceAppointmentPageState extends State<AddNewServiceAppointmentP
|
|
|
|
onChanged: (v) => serviceVm.updateCustomServiceTitle(v),
|
|
|
|
onChanged: (v) => serviceVm.updateCustomServiceTitle(v),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
8.height,
|
|
|
|
TxtField(
|
|
|
|
Row(
|
|
|
|
postfixWidget: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
LocaleKeys.sar.tr().toText(fontWeight: MyFonts.Medium, fontSize: 15, color: borderColor, textAlign: TextAlign.center),
|
|
|
|
Expanded(
|
|
|
|
],
|
|
|
|
flex: 2,
|
|
|
|
),
|
|
|
|
child: TxtField(
|
|
|
|
value: serviceVm.customServicePrice,
|
|
|
|
value: serviceVm.customServicePrice,
|
|
|
|
errorValue: serviceVm.customServicePriceError,
|
|
|
|
errorValue: serviceVm.customServicePriceError,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
@ -156,6 +162,23 @@ class _AddNewServiceAppointmentPageState extends State<AddNewServiceAppointmentP
|
|
|
|
hint: LocaleKeys.price.tr(),
|
|
|
|
hint: LocaleKeys.price.tr(),
|
|
|
|
onChanged: (v) => serviceVm.updateCustomServicePrice(v),
|
|
|
|
onChanged: (v) => serviceVm.updateCustomServicePrice(v),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
8.width,
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: DropdownField(
|
|
|
|
|
|
|
|
(DropValue value) {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
selectedCurrency = value;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
dropdownValue: selectedCurrency,
|
|
|
|
|
|
|
|
list: currencies,
|
|
|
|
|
|
|
|
hint: 'Currency',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
8.height,
|
|
|
|
TxtField(
|
|
|
|
TxtField(
|
|
|
|
postfixWidget: Column(
|
|
|
|
postfixWidget: Column(
|
|
|
|
@ -166,7 +189,7 @@ class _AddNewServiceAppointmentPageState extends State<AddNewServiceAppointmentP
|
|
|
|
),
|
|
|
|
),
|
|
|
|
isNeedClickAll: true,
|
|
|
|
isNeedClickAll: true,
|
|
|
|
isBackgroundEnabled: true,
|
|
|
|
isBackgroundEnabled: true,
|
|
|
|
hint: '',
|
|
|
|
hint: LocaleKeys.tax.tr(),
|
|
|
|
onTap: () {},
|
|
|
|
onTap: () {},
|
|
|
|
value: serviceVm.customerServiceTax,
|
|
|
|
value: serviceVm.customerServiceTax,
|
|
|
|
errorValue: '',
|
|
|
|
errorValue: '',
|
|
|
|
|