|
|
|
|
@ -60,9 +60,24 @@ class _ItemsListSheetState extends State<ItemsListSheet> {
|
|
|
|
|
serviceItemModel.name.toString().toText(fontSize: 16, isBold: true),
|
|
|
|
|
serviceItemModel.description.toString().toText(fontSize: 12, color: MyColors.lightTextColor),
|
|
|
|
|
8.height,
|
|
|
|
|
if (serviceItemModel.manufactureDate != null && serviceItemModel.manufactureDate!.isNotEmpty) ...[
|
|
|
|
|
showItem(LocaleKeys.manufacturedOn.tr() + ":", (DateHelper.formatAsDayMonthYear(DateHelper.parseStringToDate(serviceItemModel.manufactureDate!))),
|
|
|
|
|
valueColor: MyColors.darkTextColor),
|
|
|
|
|
// if (serviceItemModel.manufactureDate != null && serviceItemModel.manufactureDate!.isNotEmpty) ...[
|
|
|
|
|
// showItem(LocaleKeys.manufacturedOn.tr() + ":", (DateHelper.formatAsDayMonthYear(DateHelper.parseStringToDate(serviceItemModel.manufactureDate!))),
|
|
|
|
|
// valueColor: MyColors.darkTextColor),
|
|
|
|
|
// ],
|
|
|
|
|
if (serviceItemModel.manufactureDate != null &&
|
|
|
|
|
serviceItemModel.manufactureDate!.isNotEmpty) ...[
|
|
|
|
|
showItem(
|
|
|
|
|
LocaleKeys.manufacturedOn.tr() + ":",
|
|
|
|
|
DateFormat(
|
|
|
|
|
'dd MMM yyyy',
|
|
|
|
|
context.locale.languageCode,
|
|
|
|
|
).format(
|
|
|
|
|
DateHelper.parseStringToDate(
|
|
|
|
|
serviceItemModel.manufactureDate!,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
valueColor: MyColors.darkTextColor,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
showItem(LocaleKeys.availableforAppointment.tr() + ":", (serviceItemModel.isAllowAppointment ?? false) ? LocaleKeys.yes.tr() : LocaleKeys.no.tr(), valueColor: Colors.green),
|
|
|
|
|
showItem(LocaleKeys.allowingWorkshopService.tr() + ":", (serviceItemModel.isAppointmentCompanyLoc ?? false) ? LocaleKeys.yes.tr() : LocaleKeys.no.tr(), valueColor: Colors.green),
|
|
|
|
|
|