small fix issues

merge-requests/957/head
Elham Rababh 4 years ago
parent f7e509d967
commit 90c74c2f06

@ -22,8 +22,8 @@ class InterventionMedicationViewModel extends BaseViewModel {
List<PatiantInformtion> filterData = []; List<PatiantInformtion> filterData = [];
DateTime selectedFromDate; DateTime selectedFromDate = DateTime.now();
DateTime selectedToDate; DateTime selectedToDate = DateTime.now().add(Duration(days: 1));
PatiantInformtion patient; PatiantInformtion patient;
bool hasError = false; bool hasError = false;

@ -85,9 +85,8 @@ class _PharmacyInterventionScreenState
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration( decoration: textFieldSelectorDecoration(
TranslationBase.of(context).fromDate, TranslationBase.of(context).fromDate,
model.selectedFromDate != null "${AppDateUtils.convertStringToDateFormat(model.selectedFromDate.toString(), "yyyy-MM-dd")}"
? "${AppDateUtils.convertStringToDateFormat(model.selectedFromDate.toString(), "yyyy-MM-dd")}" ,
: "${AppDateUtils.convertStringToDateFormat(DateTime.now().toString(), "yyyy-MM-dd")}",
true, true,
suffixIcon: Icon( suffixIcon: Icon(
Icons.calendar_today, Icons.calendar_today,
@ -122,9 +121,8 @@ class _PharmacyInterventionScreenState
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration( decoration: textFieldSelectorDecoration(
TranslationBase.of(context).toDate, TranslationBase.of(context).toDate,
model.selectedToDate != null "${AppDateUtils.convertStringToDateFormat(model.selectedToDate.toString(), "yyyy-MM-dd")}"
? "${AppDateUtils.convertStringToDateFormat(model.selectedToDate.toString(), "yyyy-MM-dd")}" ,
: "${AppDateUtils.convertStringToDateFormat(DateTime.now().add(Duration(days: 1)).toString(), "yyyy-MM-dd")}",
true, true,
suffixIcon: Icon( suffixIcon: Icon(
Icons.calendar_today, Icons.calendar_today,

Loading…
Cancel
Save