WD: from date selection bug and status display name changed

update_3.16.0_CR5439_Pharmacy_Intervention
taha.alam 1 year ago
parent d0debd5d5f
commit 7a693c00c9

@ -136,7 +136,7 @@ class InterventionCardBody extends StatelessWidget {
title: TranslationBase title: TranslationBase
.of(context) .of(context)
.status, .status,
data: medication.status.toString() ?? '', data: medication.statusName ?? '',
), ),
), ),
Expanded( Expanded(

@ -168,7 +168,9 @@ class _PharmacyInterventionDialogState
Widget _dateSelection(String title, Function(String) onDateSelected, Widget _dateSelection(String title, Function(String) onDateSelected,
String selectedDate, bool isToDateSelection,{String? selectedFromDate}) { String selectedDate, bool isToDateSelection,{String? selectedFromDate}) {
return GestureDetector( return GestureDetector(
onTap: () => _selectDate(onDateSelected,selectedDate, isToDateSelection , selectedFromDate: selectedFromDate), onTap: () => _selectDate(onDateSelected,
(isToDateSelection == true) ? selectedDate : "", isToDateSelection,
selectedFromDate: selectedFromDate),
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [

Loading…
Cancel
Save