fix DA-350

merge-requests/323/head
Elham Rababah 5 years ago
parent f819e6353e
commit f3220be735

@ -292,4 +292,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 649616dc336b3659ac6b2b25159d8e488e042b69 PODFILE CHECKSUM: 649616dc336b3659ac6b2b25159d8e488e042b69
COCOAPODS: 1.10.1 COCOAPODS: 1.10.0.rc.1

@ -136,6 +136,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
Stack(children: [ Stack(children: [
Column( Column(
children: <Widget>[ children: <Widget>[
if(false)
ProfileWelcomeWidget( ProfileWelcomeWidget(
InkWell( InkWell(
onTap: () async { onTap: () async {

@ -1106,6 +1106,7 @@ class TranslationBase {
String get admissionRequestSuccessMsg => localizedValues['admissionRequestSuccessMsg'][locale.languageCode]; String get admissionRequestSuccessMsg => localizedValues['admissionRequestSuccessMsg'][locale.languageCode];
String get infoStatus => localizedValues['infoStatus'][locale.languageCode]; String get infoStatus => localizedValues['infoStatus'][locale.languageCode];
String get doctorResponse => localizedValues['doctorResponse'][locale.languageCode]; String get doctorResponse => localizedValues['doctorResponse'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

@ -1,6 +1,7 @@
import 'package:autocomplete_textfield/autocomplete_textfield.dart'; import 'package:autocomplete_textfield/autocomplete_textfield.dart';
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart'; import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart';
import 'package:doctor_app_flutter/core/model/get_medication_response_model.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
@ -13,18 +14,19 @@ import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/dialogs/master_key_dailog.dart'; import 'package:doctor_app_flutter/widgets/shared/dialogs/master_key_dailog.dart';
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
import 'package:eva_icons_flutter/eva_icons_flutter.dart'; import 'package:eva_icons_flutter/eva_icons_flutter.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../custom_validation_error.dart'; import '../custom_validation_error.dart';
class UpdateMedicationWidget extends StatefulWidget { class UpdateMedicationWidget extends StatefulWidget {
final List<MySelectedAllergy> myAllergiesList; final TextEditingController medicationController;
UpdateMedicationWidget({Key key, this.myAllergiesList}); UpdateMedicationWidget({
Key key,
this.medicationController,
});
@override @override
_UpdateMedicationWidgetState createState() => _UpdateMedicationWidgetState(); _UpdateMedicationWidgetState createState() => _UpdateMedicationWidgetState();
@ -43,7 +45,7 @@ class _UpdateMedicationWidgetState extends State<UpdateMedicationWidget> {
hintText: TranslationBase.of(context).addMedication, hintText: TranslationBase.of(context).addMedication,
fontSize: 13.5, fontSize: 13.5,
onTapTextFields: () { onTapTextFields: () {
openAllergiesList(context); openMedicationList(context);
}, },
readOnly: true, readOnly: true,
// hintColor: Colors.black, // hintColor: Colors.black,
@ -62,195 +64,57 @@ class _UpdateMedicationWidgetState extends State<UpdateMedicationWidget> {
), ),
SizedBox( SizedBox(
height: 20, height: 20,
),
Container(
margin:
EdgeInsets.only(left: 15, right: 15, top: 15),
child: Column(
children: widget.myAllergiesList.map((selectedAllergy) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
child: Texts(
projectViewModel.isArabic
? selectedAllergy.selectedAllergy.nameAr
: selectedAllergy.selectedAllergy.nameEn
.toUpperCase(),
variant: "bodyText",
textDecoration: selectedAllergy.isChecked
? null
: TextDecoration.lineThrough,
bold: true,
color: Colors.black),
width: MediaQuery
.of(context)
.size
.width * 0.5,
),
Texts(
projectViewModel.isArabic
? selectedAllergy.selectedAllergySeverity
.nameAr
: selectedAllergy.selectedAllergySeverity
.nameEn
.toUpperCase(),
variant: "bodyText",
textDecoration: selectedAllergy.isChecked
? null
: TextDecoration.lineThrough,
bold: true,
color: AppGlobal.appPrimaryColor),
if (selectedAllergy.isChecked)
InkWell(
child: Icon(
FontAwesomeIcons.trash,
color: Colors.grey,
size: 20,
),
onTap: () => removeAllergy(selectedAllergy),
)
],
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: Row(
children: [
AppText(
selectedAllergy.remark != null &&
selectedAllergy.remark != ''
? TranslationBase
.of(context)
.remarks + " : "
: '',
fontWeight: FontWeight.bold,
fontSize: 13,
),
Container(
width: MediaQuery
.of(context)
.size
.width * 0.55,
child: AppText(
selectedAllergy.remark ?? '',
fontSize: 10,
color: Colors.grey,
),
),
],
),
),
DividerWithSpacesAround()
],
),
SizedBox(
height: 10,
),
],
);
}).toList()),
) )
], ],
); );
} }
removeAllergy(MySelectedAllergy mySelectedAllergy) {
List<MySelectedAllergy> allergy =
// ignore: missing_return
widget.myAllergiesList.where((element) =>
mySelectedAllergy.selectedAllergySeverity.id ==
element.selectedAllergySeverity.id &&
mySelectedAllergy.selectedAllergy.id == element.selectedAllergy.id
).toList();
if (allergy.length > 0) {
setState(() {
allergy[0].isChecked = false;
});
}
openMedicationList(BuildContext context) {
print(allergy);
}
openAllergiesList(BuildContext context) {
showModalBottomSheet( showModalBottomSheet(
backgroundColor: Colors.white, backgroundColor: Colors.white,
isScrollControlled: true, isScrollControlled: true,
context: context, context: context,
builder: (context) { builder: (context) {
return AddAllergies( return AddMedication(
addAllergiesFun: (MySelectedAllergy mySelectedAllergy) { addMedicationFun: (MySelectedAllergy mySelectedAllergy) {},
if (mySelectedAllergy.selectedAllergySeverity == null || medicationController: widget.medicationController,
mySelectedAllergy.selectedAllergy == null) { );
helpers.showErrorToast(TranslationBase
.of(context)
.requiredMsg);
} else {
setState(() {
List<MySelectedAllergy> allergy =
// ignore: missing_return
widget.myAllergiesList
.where((element) =>
mySelectedAllergy.selectedAllergy.id ==
element.selectedAllergy.id)
.toList();
if (allergy.isEmpty) {
widget.myAllergiesList.add(mySelectedAllergy);
Navigator.of(context).pop();
} else {
allergy.first.selectedAllergy =
mySelectedAllergy.selectedAllergy;
allergy.first.selectedAllergySeverity =
mySelectedAllergy.selectedAllergySeverity;
allergy.first.remark = mySelectedAllergy.remark;
allergy.first.isChecked = mySelectedAllergy.isChecked;
Navigator.of(context).pop();
// helpers.showErrorToast(TranslationBase
// .of(context)
// .itemExist);
}
});
}
},);
}); });
} }
} }
class AddAllergies extends StatefulWidget { // ignore: must_be_immutable
final Function addAllergiesFun; class AddMedication extends StatefulWidget {
final Function addMedicationFun;
TextEditingController medicationController;
const AddAllergies({Key key, this.addAllergiesFun}) : super(key: key); AddMedication({Key key, this.addMedicationFun, this.medicationController})
: super(key: key);
@override @override
_AddAllergiesState createState() => _AddAllergiesState(); _AddMedicationState createState() => _AddMedicationState();
} }
class _AddAllergiesState extends State<AddAllergies> { class _AddMedicationState extends State<AddMedication> {
List<MasterKeyModel> allergiesList; MasterKeyModel _selectedMedicationDose;
List<MasterKeyModel> allergySeverityList; MasterKeyModel _selectedMedicationStrength;
MasterKeyModel _selectedMedicationStrengthSeverity; MasterKeyModel _selectedMedicationRoute;
MasterKeyModel _selectedAllergy; MasterKeyModel _selectedMedicationFrequency;
TextEditingController remarkController = TextEditingController();
TextEditingController severityController = TextEditingController();
TextEditingController allergyController = TextEditingController();
GlobalKey key = new GlobalKey<AutoCompleteTextFieldState<MasterKeyModel>>(); MasterKeyModel _selectedAllergy;
TextEditingController doseController = TextEditingController();
TextEditingController strengthController = TextEditingController();
TextEditingController routeController = TextEditingController();
TextEditingController frequencyController = TextEditingController();
GetMedicationResponseModel _selectedMedication;
GlobalKey key =
new GlobalKey<AutoCompleteTextFieldState<GetMedicationResponseModel>>();
bool isFormSubmitted = false; bool isFormSubmitted = false;
InputDecoration textFieldSelectorDecoration(String hintText, InputDecoration textFieldSelectorDecoration(
String selectedText, bool isDropDown, String hintText, String selectedText, bool isDropDown,
{IconData icon}) { {IconData icon}) {
return InputDecoration( return InputDecoration(
contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 10), contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
@ -321,7 +185,7 @@ class _AddAllergiesState extends State<AddAllergies> {
AppText( AppText(
TranslationBase TranslationBase
.of(context) .of(context)
.addAllergies, .addMedication,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 16, fontSize: 16,
), ),
@ -331,109 +195,90 @@ class _AddAllergiesState extends State<AddAllergies> {
Container( Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.070,
child: InkWell( child: InkWell(
onTap: model.allergiesList != null onTap: model.allMedicationList != null
? () { ? () {
setState(() { setState(() {
_selectedAllergy = null; _selectedMedication = null;
allergyController.text = null; });
}); }
} : null,
: null, child: _selectedMedication == null
child: _selectedAllergy == null ? AutoCompleteTextField<
? AutoCompleteTextField<MasterKeyModel>( GetMedicationResponseModel>(
decoration: textFieldSelectorDecoration( decoration: textFieldSelectorDecoration(
TranslationBase TranslationBase
.of(context) .of(context)
.selectAllergy, .searchMedicineNameHere,
_selectedAllergy != null _selectedMedication != null
? _selectedAllergy.nameEn ? _selectedMedication.genericName
: null, true,
icon: EvaIcons.search),
itemSubmitted: (item) =>
setState(() {
_selectedAllergy = item;
allergyController.text =
projectViewModel.isArabic
? _selectedAllergy
.nameAr
: _selectedAllergy
.nameEn;
}),
key: key,
suggestions: model.allergiesList,
itemBuilder: (context, suggestion) =>
new Padding(
child: Texts(
projectViewModel.isArabic
? suggestion
.nameAr
: suggestion.nameEn),
padding: EdgeInsets.all(2.0)),
itemSorter: (a, b) => 1,
itemFilter: (suggestion, input) =>
suggestion.nameAr.toLowerCase().startsWith(
input.toLowerCase()) ||
suggestion.nameEn.toLowerCase()
.startsWith(input.toLowerCase()),
)
:
TextFields(
onTapTextFields: model.allergiesList !=
null
? () {
setState(() {
_selectedAllergy = null;
allergyController.text = null;
});
}
: null, : null,
hasLabelText: allergyController.text != true,
'' ? true : false, icon: EvaIcons.search),
showLabelText: true, itemSubmitted: (item) =>
hintText: TranslationBase setState(
() => _selectedMedication = item),
key: key,
suggestions: model.allMedicationList,
itemBuilder: (context, suggestion) =>
new Padding(
child: Texts(
suggestion.description + '/' +
suggestion.genericName),
padding: EdgeInsets.all(8.0)),
itemSorter: (a, b) => 1,
itemFilter: (suggestion, input) =>
suggestion.genericName
.toLowerCase()
.startsWith(input.toLowerCase()) ||
suggestion.description
.toLowerCase()
.startsWith(input.toLowerCase()) ||
suggestion.keywords
.toLowerCase()
.startsWith(input.toLowerCase()),
)
: TextField(
minLines: 2,
maxLines: 2,
decoration: textFieldSelectorDecoration(
TranslationBase
.of(context) .of(context)
.selectAllergy, .searchMedicineNameHere,
fontSize: 13.5, _selectedMedication != null
readOnly: true, ? _selectedMedication.description +
fontWeight: FontWeight.w600, (' (${_selectedMedication
maxLines: 2, .genericName} )')
minLines: 1, : null,
controller: allergyController, true,
suffixIcon: EvaIcons.search, icon: EvaIcons.search),
validator: (value) { enabled: false,
if (value == null) ),
return TranslationBase
.of(context)
.emptyMessage;
else
return null;
})
), ),
), ),
if(isFormSubmitted && _selectedAllergy == null) if(isFormSubmitted && _selectedMedication == null)
CustomValidationError(), CustomValidationError(),
SizedBox( SizedBox(
height: 10, height: 5,
), ),
TextFields( TextFields(
onTapTextFields: model onTapTextFields: model.medicationDoseTimeList !=
.medicationStrengthList != null null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog( MasterKeyDailog dialog = MasterKeyDailog(
list: model.medicationStrengthList, list: model.medicationDoseTimeList,
okText: TranslationBase okText: TranslationBase
.of(context) .of(context)
.ok, .ok,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationStrengthSeverity = _selectedMedicationDose =
selectedValue; selectedValue;
severityController.text = doseController.text =
projectViewModel.isArabic projectViewModel.isArabic
? _selectedMedicationStrengthSeverity ? _selectedMedicationDose
.nameAr .nameAr
: _selectedMedicationStrengthSeverity : _selectedMedicationDose
.nameEn; .nameEn;
}); });
}, },
@ -447,10 +292,12 @@ class _AddAllergiesState extends State<AddAllergies> {
); );
} }
: null, : null,
hasLabelText: severityController.text != hasLabelText: doseController.text !=
'' ? true : false, '' ? true : false,
showLabelText: true, showLabelText: true,
hintText: "Strength", hintText: TranslationBase
.of(context)
.doseTime,
//TODO add translation //TODO add translation
fontSize: 13.5, fontSize: 13.5,
readOnly: true, readOnly: true,
@ -458,7 +305,7 @@ class _AddAllergiesState extends State<AddAllergies> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
maxLines: 2, maxLines: 2,
minLines: 1, minLines: 1,
controller: severityController, controller: doseController,
validator: (value) { validator: (value) {
if (value == null) if (value == null)
return TranslationBase return TranslationBase
@ -471,26 +318,29 @@ class _AddAllergiesState extends State<AddAllergies> {
height: 5, height: 5,
), ),
if(isFormSubmitted && if(isFormSubmitted &&
_selectedMedicationStrengthSeverity == null) _selectedMedicationDose == null)
CustomValidationError(), TextFields( CustomValidationError(), SizedBox(
onTapTextFields: model.medicationDoseTimeList != height: 5,
null ),
TextFields(
onTapTextFields: model
.medicationStrengthList != null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog( MasterKeyDailog dialog = MasterKeyDailog(
list: model.medicationDoseTimeList, list: model.medicationStrengthList,
okText: TranslationBase okText: TranslationBase
.of(context) .of(context)
.ok, .ok,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationStrengthSeverity = _selectedMedicationStrength =
selectedValue; selectedValue;
severityController.text = strengthController.text =
projectViewModel.isArabic projectViewModel.isArabic
? _selectedMedicationStrengthSeverity ? _selectedMedicationStrength
.nameAr .nameAr
: _selectedMedicationStrengthSeverity : _selectedMedicationStrength
.nameEn; .nameEn;
}); });
}, },
@ -504,18 +354,19 @@ class _AddAllergiesState extends State<AddAllergies> {
); );
} }
: null, : null,
hasLabelText: severityController.text != hasLabelText: strengthController.text !=
'' ? true : false, '' ? true : false,
showLabelText: true, showLabelText: true,
hintText: "Dose Time", hintText: TranslationBase
//TODO add translation .of(context)
.strength,
fontSize: 13.5, fontSize: 13.5,
readOnly: true, readOnly: true,
// hintColor: Colors.black, // hintColor: Colors.black,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
maxLines: 2, maxLines: 2,
minLines: 1, minLines: 1,
controller: severityController, controller: strengthController,
validator: (value) { validator: (value) {
if (value == null) if (value == null)
return TranslationBase return TranslationBase
@ -527,35 +378,94 @@ class _AddAllergiesState extends State<AddAllergies> {
height: 5, height: 5,
), ),
if(isFormSubmitted && if(isFormSubmitted &&
_selectedMedicationStrengthSeverity == null) _selectedMedicationStrength == null)
CustomValidationError(), CustomValidationError(),
SizedBox( SizedBox(
height: 10, height: 5,
), ),
TextFields(
onTapTextFields: model
.medicationRouteList != null
? () {
MasterKeyDailog dialog = MasterKeyDailog(
list: model.medicationRouteList,
okText: TranslationBase
.of(context)
.ok,
okFunction: (selectedValue) {
setState(() {
_selectedMedicationRoute =
selectedValue;
routeController.text =
projectViewModel.isArabic
? _selectedMedicationRoute
.nameAr
: _selectedMedicationRoute
.nameEn;
});
},
);
showDialog(
barrierDismissible: false,
context: context,
builder: (BuildContext context) {
return dialog;
},
);
}
: null,
hasLabelText: routeController.text !=
'' ? true : false,
showLabelText: true,
hintText: TranslationBase
.of(context)
.route,
fontSize: 13.5,
readOnly: true,
// hintColor: Colors.black,
fontWeight: FontWeight.w600,
maxLines: 2,
minLines: 1,
controller: routeController,
validator: (value) {
if (value == null)
return TranslationBase
.of(context)
.emptyMessage;
else
return null;
}),
SizedBox( SizedBox(
height: 10, height: 5,
),
if(isFormSubmitted &&
_selectedMedicationRoute == null)
CustomValidationError(),
SizedBox(
height: 5,
), ),
TextFields( TextFields(
onTapTextFields: model onTapTextFields: model
.medicationStrengthList != null .medicationFrequencyList != null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog( MasterKeyDailog dialog = MasterKeyDailog(
list: model.medicationStrengthList, list: model.medicationFrequencyList,
okText: TranslationBase okText: TranslationBase
.of(context) .of(context)
.ok, .ok,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationStrengthSeverity = _selectedMedicationFrequency =
selectedValue; selectedValue;
severityController.text = frequencyController.text =
projectViewModel.isArabic projectViewModel.isArabic
? _selectedMedicationStrengthSeverity ? _selectedMedicationFrequency
.nameAr .nameAr
: _selectedMedicationStrengthSeverity : _selectedMedicationFrequency
.nameEn; .nameEn;
}); });
}, },
@ -569,10 +479,12 @@ class _AddAllergiesState extends State<AddAllergies> {
); );
} }
: null, : null,
hasLabelText: severityController.text != hasLabelText: frequencyController.text !=
'' ? true : false, '' ? true : false,
showLabelText: true, showLabelText: true,
hintText: "Strength", hintText: TranslationBase
.of(context)
.frequency,
//TODO add translation //TODO add translation
fontSize: 13.5, fontSize: 13.5,
readOnly: true, readOnly: true,
@ -580,7 +492,7 @@ class _AddAllergiesState extends State<AddAllergies> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
maxLines: 2, maxLines: 2,
minLines: 1, minLines: 1,
controller: severityController, controller: frequencyController,
validator: (value) { validator: (value) {
if (value == null) if (value == null)
return TranslationBase return TranslationBase
@ -593,8 +505,11 @@ class _AddAllergiesState extends State<AddAllergies> {
height: 5, height: 5,
), ),
if(isFormSubmitted && if(isFormSubmitted &&
_selectedMedicationStrengthSeverity == null) _selectedMedicationFrequency == null)
CustomValidationError(), CustomValidationError(),
SizedBox(
height: 30,
),
AppButton( AppButton(
title: TranslationBase title: TranslationBase
.of(context) .of(context)
@ -604,15 +519,29 @@ class _AddAllergiesState extends State<AddAllergies> {
setState(() { setState(() {
isFormSubmitted = true; isFormSubmitted = true;
}); });
if (_selectedAllergy != null && if (_selectedMedication != null &&
_selectedMedicationStrengthSeverity != _selectedMedicationDose !=
null) { null &&
MySelectedAllergy mySelectedAllergy = new MySelectedAllergy( _selectedMedicationStrength != null &&
remark: remarkController.text, _selectedMedicationRoute != null &&
selectedAllergy: _selectedAllergy, _selectedMedicationFrequency != null) {
isChecked: true, widget.medicationController.text =
selectedAllergySeverity: _selectedMedicationStrengthSeverity,); widget.medicationController.text +
widget.addAllergiesFun(mySelectedAllergy); '${_selectedMedication
.description } (${TranslationBase
.of(context)
.doseTime} ) ${doseController
.text} (${TranslationBase
.of(context)
.strength}) ${strengthController
.text} (${TranslationBase
.of(context)
.route }) ${routeController
.text} (${TranslationBase
.of(context)
.frequency }) ${frequencyController
.text} \n \n';
Navigator.of(context).pop();
} }
}, },
), ),
@ -621,7 +550,7 @@ class _AddAllergiesState extends State<AddAllergies> {
), ),
), ),
), ),
)), ),),
), ),
); );
} }

@ -209,7 +209,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
complaintsController.text = helpers.parseHtmlString( complaintsController.text = helpers.parseHtmlString(
model.patientChiefComplaintList[0].chiefComplaint); model.patientChiefComplaintList[0].chiefComplaint);
illnessController.text = model.patientChiefComplaintList[0].hopi; illnessController.text = model.patientChiefComplaintList[0].hopi;
medicationController.text = model.patientChiefComplaintList[0].currentMedication; medicationController.text = model.patientChiefComplaintList[0].currentMedication + '\n \n';
} }
await getHistory(model); await getHistory(model);
@ -326,6 +326,10 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
SizedBox( SizedBox(
height: 10, height: 10,
), ),
UpdateMedicationWidget(medicationController: medicationController,),
SizedBox(
height: 10,
),
Container( Container(
margin: EdgeInsets.only(left: 10, right: 10, top: 15), margin: EdgeInsets.only(left: 10, right: 10, top: 15),
child: TextFields( child: TextFields(
@ -340,7 +344,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
// hintColor: Colors.black, // hintColor: Colors.black,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
maxLines: 23, maxLines: 23,
minLines: 1, minLines: 10,
controller: medicationController, controller: medicationController,
validator: (value) { validator: (value) {
if (value == null || value == "") if (value == null || value == "")
@ -354,10 +358,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
SizedBox( SizedBox(
height: 10, height: 10,
), ),
UpdateMedicationWidget(myAllergiesList: widget.myAllergiesList,),
SizedBox(
height: 10,
),
]), ]),
), ),
isExpand: isChiefExpand, isExpand: isChiefExpand,

Loading…
Cancel
Save