add assessment_page code

pull/199/head
Elham Rababah 5 years ago
parent dc4250a4de
commit 1672d9a3a0

@ -7,7 +7,9 @@ enum MasterKeysService {
HistorySurgical, HistorySurgical,
PhysicalExamination, PhysicalExamination,
AllergySeverity, AllergySeverity,
physiotherapyGoals physiotherapyGoals,
DiagnosisCondition,
DiagnosisType
} }
extension SelectedMasterKeysService on MasterKeysService { extension SelectedMasterKeysService on MasterKeysService {
@ -40,6 +42,11 @@ extension SelectedMasterKeysService on MasterKeysService {
break; break;
case MasterKeysService.physiotherapyGoals: case MasterKeysService.physiotherapyGoals:
return 117; return 117;
break;case MasterKeysService.DiagnosisCondition:
return 34;
break;
case MasterKeysService.DiagnosisType:
return 35;
break; break;
} }
} }

@ -31,6 +31,8 @@ class LookupService extends BaseService {
List<MasterKeyModel> _physicalExaminationList = []; List<MasterKeyModel> _physicalExaminationList = [];
List<MasterKeyModel> listOfPhysiotherapyGoals = []; List<MasterKeyModel> listOfPhysiotherapyGoals = [];
List<MasterKeyModel> listOfDiagnosisType = [];
List<MasterKeyModel> listOfDiagnosisCondition = [];
Future getMasterLookup(MasterKeysService masterKeys) async { Future getMasterLookup(MasterKeysService masterKeys) async {
hasError = false; hasError = false;
@ -111,6 +113,21 @@ class LookupService extends BaseService {
.add(MasterKeyModel.fromJson(v)); .add(MasterKeyModel.fromJson(v));
}); });
break; break;
case MasterKeysService.DiagnosisType:
listOfDiagnosisType.clear();
entryList.forEach((v) {
listOfDiagnosisType
.add(MasterKeyModel.fromJson(v));
});
break;
case MasterKeysService.DiagnosisCondition:
listOfDiagnosisCondition.clear();
entryList.forEach((v) {
listOfDiagnosisCondition
.add(MasterKeyModel.fromJson(v));
});
break;
} }
} }
} }

@ -32,6 +32,8 @@ class SOAPViewModel extends BaseViewModel {
List<MasterKeyModel> get historySurgicalList => _SOAPService.historySurgicalList; List<MasterKeyModel> get historySurgicalList => _SOAPService.historySurgicalList;
List<MasterKeyModel> get mergeHistorySurgicalWithHistorySportList => [...historySurgicalList,...historySportList]; List<MasterKeyModel> get mergeHistorySurgicalWithHistorySportList => [...historySurgicalList,...historySportList];
List<MasterKeyModel> get physicalExaminationList => _SOAPService.physicalExaminationList; List<MasterKeyModel> get physicalExaminationList => _SOAPService.physicalExaminationList;
List<MasterKeyModel> get listOfDiagnosisType => _SOAPService.listOfDiagnosisType;
List<MasterKeyModel> get listOfDiagnosisCondition => _SOAPService.listOfDiagnosisCondition;

@ -0,0 +1,47 @@
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
class MySelectedAssessment {
MasterKeyModel selectedICD;
MasterKeyModel selectedDiagnosisCondition;
MasterKeyModel selectedDiagnosisType;
String remark;
int appointmentId;
MySelectedAssessment(
{this.selectedICD,
this.selectedDiagnosisCondition,
this.selectedDiagnosisType,
this.remark, this.appointmentId});
MySelectedAssessment.fromJson(Map<String, dynamic> json) {
selectedICD = json['selectedICD'] != null
? new MasterKeyModel.fromJson(json['selectedICD'])
: null;
selectedDiagnosisCondition = json['selectedDiagnosisCondition'] != null
? new MasterKeyModel.fromJson(json['selectedDiagnosisCondition'])
: null;
selectedDiagnosisType = json['selectedDiagnosisType'] != null
? new MasterKeyModel.fromJson(json['selectedDiagnosisType'])
: null;
remark = json['remark'];
appointmentId = json['appointmentId'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.selectedICD != null) {
data['selectedICD'] = this.selectedICD.toJson();
}
if (this.selectedDiagnosisCondition != null) {
data['selectedICD'] = this.selectedDiagnosisCondition.toJson();
}
if (this.selectedDiagnosisType != null) {
data['selectedICD'] = this.selectedDiagnosisType.toJson();
}
data['remark'] = this.remark;
data['appointmentId'] = this.appointmentId;
return data;
}
}

@ -2,6 +2,7 @@ import 'package:doctor_app_flutter/core/viewModel/doctor_replay_view_model.dart'
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart'; import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/my_selected_allergy.dart'; import 'package:doctor_app_flutter/models/SOAP/my_selected_allergy.dart';
import 'package:doctor_app_flutter/models/SOAP/my_selected_assement.dart';
import 'package:doctor_app_flutter/models/SOAP/my_selected_examination.dart'; import 'package:doctor_app_flutter/models/SOAP/my_selected_examination.dart';
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart'; import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart';
@ -32,6 +33,7 @@ class _AddSOAPIndexState extends State<AddSOAPIndex>
List<MySelectedAllergy> myAllergiesList= List(); List<MySelectedAllergy> myAllergiesList= List();
List<MasterKeyModel> myHistoryList = List(); List<MasterKeyModel> myHistoryList = List();
List<MySelectedExamination> mySelectedExamination = List(); List<MySelectedExamination> mySelectedExamination = List();
MySelectedAssessment mySelectedAssessment = new MySelectedAssessment();
changePageViewIndex(pageIndex) { changePageViewIndex(pageIndex) {
_controller.jumpToPage(pageIndex); _controller.jumpToPage(pageIndex);
} }
@ -159,7 +161,7 @@ class _AddSOAPIndexState extends State<AddSOAPIndex>
children: <Widget>[ children: <Widget>[
SubjectivePage(changePageViewIndex: changePageViewIndex,myAllergiesList: myAllergiesList,myHistoryList: myHistoryList,), SubjectivePage(changePageViewIndex: changePageViewIndex,myAllergiesList: myAllergiesList,myHistoryList: myHistoryList,),
ObjectivePage(changePageViewIndex: changePageViewIndex,mySelectedExamination:mySelectedExamination), ObjectivePage(changePageViewIndex: changePageViewIndex,mySelectedExamination:mySelectedExamination),
AssessmentPage(changePageViewIndex: changePageViewIndex,), AssessmentPage(changePageViewIndex: changePageViewIndex,mySelectedAssessment:mySelectedAssessment),
PlanPage(changePageViewIndex: changePageViewIndex,) PlanPage(changePageViewIndex: changePageViewIndex,)
], ],
), ),

@ -1,11 +1,16 @@
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/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/my_selected_assement.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/Text.dart'; import 'package:doctor_app_flutter/widgets/shared/Text.dart';
import 'package:doctor_app_flutter/widgets/shared/TextFields.dart'; import 'package:doctor_app_flutter/widgets/shared/TextFields.dart';
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart'; 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/dailog-list-select.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:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart'; import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
import 'package:eva_icons_flutter/eva_icons_flutter.dart'; import 'package:eva_icons_flutter/eva_icons_flutter.dart';
@ -14,8 +19,10 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
class AssessmentPage extends StatefulWidget { class AssessmentPage extends StatefulWidget {
final Function changePageViewIndex; final Function changePageViewIndex;
final MySelectedAssessment mySelectedAssessment;
AssessmentPage({Key key, this.changePageViewIndex}); AssessmentPage(
{Key key, this.changePageViewIndex, this.mySelectedAssessment});
@override @override
_AssessmentPageState createState() => _AssessmentPageState(); _AssessmentPageState createState() => _AssessmentPageState();
@ -33,7 +40,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final screenSize = MediaQuery.of(context).size; final screenSize = MediaQuery.of(context).size;
return AppScaffold( return BaseView<SOAPViewModel>(
builder: (_, model, w) => AppScaffold(
isShowAppBar: false, isShowAppBar: false,
body: SingleChildScrollView( body: SingleChildScrollView(
physics: ScrollPhysics(), physics: ScrollPhysics(),
@ -53,7 +61,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
Row( Row(
children: [ children: [
Texts('ASSESSMENT', Texts('ASSESSMENT',
variant: isAssessmentExpand ? "bodyText" : '', variant:
isAssessmentExpand ? "bodyText" : '',
bold: isAssessmentExpand ? true : false, bold: isAssessmentExpand ? true : false,
color: Colors.black), color: Colors.black),
Icon( Icon(
@ -81,7 +90,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
Column( Column(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(left: 5, right: 5, top: 15), margin:
EdgeInsets.only(left: 5, right: 5, top: 15),
child: TextFields( child: TextFields(
hintText: "Add ASSESSMENT", hintText: "Add ASSESSMENT",
fontSize: 13.5, fontSize: 13.5,
@ -96,7 +106,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
// controller: messageController, // controller: messageController,
validator: (value) { validator: (value) {
if (value == null) if (value == null)
return TranslationBase.of(context) return TranslationBase
.of(context)
.emptyMessage; .emptyMessage;
else else
return null; return null;
@ -105,14 +116,25 @@ class _AssessmentPageState extends State<AssessmentPage> {
SizedBox( SizedBox(
height: 20, height: 20,
), ),
if(widget.mySelectedAssessment != null &&
widget.mySelectedAssessment
.appointmentId !=
null && widget.mySelectedAssessment
.selectedDiagnosisType != null &&
widget.mySelectedAssessment
.selectedDiagnosisCondition != null)
Container( Container(
margin: EdgeInsets.only(left: 5, right: 5, top: 15), margin: EdgeInsets.only(
left: 5, right: 5, top: 15),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment
crossAxisAlignment: CrossAxisAlignment.start, .spaceBetween,
crossAxisAlignment: CrossAxisAlignment
.start,
children: [ children: [
Column( Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment
.start,
children: [ children: [
Column( Column(
mainAxisAlignment: mainAxisAlignment:
@ -135,7 +157,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
], ],
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment
.start,
children: [ children: [
Row( Row(
mainAxisAlignment: mainAxisAlignment:
@ -147,7 +170,9 @@ class _AssessmentPageState extends State<AssessmentPage> {
fontSize: 16, fontSize: 16,
), ),
AppText( AppText(
"2019054946", widget.mySelectedAssessment
.appointmentId
.toString(),
fontSize: 10, fontSize: 10,
color: Colors.grey, color: Colors.grey,
), ),
@ -158,7 +183,9 @@ class _AssessmentPageState extends State<AssessmentPage> {
MainAxisAlignment.start, MainAxisAlignment.start,
children: [ children: [
AppText( AppText(
"Typhoid Fever", widget.mySelectedAssessment
.selectedDiagnosisCondition
.nameEn,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 16, fontSize: 16,
), ),
@ -174,7 +201,9 @@ class _AssessmentPageState extends State<AssessmentPage> {
fontSize: 16, fontSize: 16,
), ),
AppText( AppText(
"Possible Diagnosis", widget.mySelectedAssessment
.selectedDiagnosisType
.nameEn,
fontSize: 10, fontSize: 10,
color: Colors.grey, color: Colors.grey,
), ),
@ -216,7 +245,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
], ],
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment
.start,
children: [ children: [
Row( Row(
@ -239,7 +269,8 @@ class _AssessmentPageState extends State<AssessmentPage> {
children: [ children: [
InkWell( InkWell(
onTap: () {}, onTap: () {},
child: Icon(EvaIcons.edit2Outline), child: Icon(EvaIcons
.edit2Outline),
) )
], ],
), ),
@ -255,7 +286,9 @@ class _AssessmentPageState extends State<AssessmentPage> {
height: 30, height: 30,
), ),
AppButton( AppButton(
title: TranslationBase.of(context).next, title: TranslationBase
.of(context)
.next,
onPressed: () { onPressed: () {
widget.changePageViewIndex(3); widget.changePageViewIndex(3);
}, },
@ -267,13 +300,53 @@ class _AssessmentPageState extends State<AssessmentPage> {
), ),
), ),
), ),
)); )));
} }
openAssessmentDialog(BuildContext context) { openAssessmentDialog(BuildContext context) {
final screenSize = MediaQuery.of(context).size; showModalBottomSheet(
InputDecoration textFieldSelectorDecoration( backgroundColor: Colors.white,
String hintText, String selectedText, bool isDropDown) { isScrollControlled: true,
context: context,
builder: (context) {
return AddAssessmentDetails(
mySelectedAssessment: widget.mySelectedAssessment,
addSelectedAssessment: () {
setState(() {
Navigator.of(context).pop();
});
});
});
}
}
class AddAssessmentDetails extends StatefulWidget {
final MySelectedAssessment mySelectedAssessment;
final Function() addSelectedAssessment;
const AddAssessmentDetails(
{Key key, this.mySelectedAssessment, this.addSelectedAssessment})
: super(key: key);
@override
_AddAssessmentDetailsState createState() => _AddAssessmentDetailsState();
}
class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
MasterKeyModel _selectedDiagnosisCondition;
MasterKeyModel _selectedDiagnosisType;
TextEditingController remarkController = TextEditingController();
TextEditingController appointmentIdController = TextEditingController(
text: "234567");
@override
Widget build(BuildContext context) {
final screenSize = MediaQuery
.of(context)
.size;
InputDecoration textFieldSelectorDecoration(String hintText,
String selectedText, bool isDropDown) {
//TODO: make one Input InputDecoration for all //TODO: make one Input InputDecoration for all
return InputDecoration( return InputDecoration(
focusedBorder: OutlineInputBorder( focusedBorder: OutlineInputBorder(
@ -296,16 +369,25 @@ class _AssessmentPageState extends State<AssessmentPage> {
), ),
); );
} }
showModalBottomSheet(
backgroundColor: Colors.white,
isScrollControlled: true,
context: context,
builder: (context) {
return FractionallySizedBox( return FractionallySizedBox(
heightFactor: 0.75, heightFactor: 0.75,
child: BaseView<SOAPViewModel>(
onModelReady: (model) async {
if (model.listOfDiagnosisCondition.length == 0) {
await model.getMasterLookup(MasterKeysService.DiagnosisCondition);
}
if (model.listOfDiagnosisType.length == 0) {
await model.getMasterLookup(MasterKeysService.DiagnosisType);
}
},
builder: (_, model, w) =>
AppScaffold(
baseViewModel: model,
isShowAppBar: false,
body: SingleChildScrollView(
child: Center(
child: FractionallySizedBox(
widthFactor: 0.9, widthFactor: 0.9,
child: Container( child: Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -322,44 +404,23 @@ class _AssessmentPageState extends State<AssessmentPage> {
height: 16, height: 16,
), ),
Container( Container(
height: screenSize.height * 0.070, margin: EdgeInsets.only(
child: InkWell( left: 0, right: 0, top: 15),
onTap: assessmentList != null child: TextFields(
? () { hintText: "Appointment Number",
ListSelectDialog dialog = ListSelectDialog( fontSize: 13.5,
list: assessmentList, // hintColor: Colors.black,
attributeName: 'name', fontWeight: FontWeight.w600,
attributeValueId: 'id', readOnly: true,
okText: TranslationBase.of(context).ok, controller: appointmentIdController,
okFunction: (selectedValue) { validator: (value) {
setState(() { if (value == null)
// model.getDoctorBranch().then((value) { return TranslationBase
// _selectedBranch = value; .of(context)
// if (_referTo['id'] == 1) { .emptyMessage;
// model.getClinics( else
// _selectedBranch['ID']); return null;
// } }),
// });
});
},
);
showDialog(
barrierDismissible: false,
context: context,
builder: (BuildContext context) {
return dialog;
},
);
}
: null,
child: TextField(
decoration: textFieldSelectorDecoration(
"Appointment Number",
_referTo != null ? _referTo['name'] : null,
true),
enabled: false,
),
),
), ),
SizedBox( SizedBox(
height: 10, height: 10,
@ -367,15 +428,23 @@ class _AssessmentPageState extends State<AssessmentPage> {
Container( Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.070,
child: InkWell( child: InkWell(
onTap: assessmentList != null onTap: model.listOfDiagnosisCondition !=
null
? () { ? () {
ListSelectDialog dialog = ListSelectDialog( MasterKeyDailog dialog = MasterKeyDailog(
list: assessmentList, list: model.listOfDiagnosisCondition,
attributeName: 'name', okText: TranslationBase
attributeValueId: 'id', .of(context)
okText: TranslationBase.of(context).ok, .ok,
okFunction: (selectedValue) { okFunction: (
setState(() {}); MasterKeyModel selectedValue) {
setState(() {
_selectedDiagnosisCondition =
selectedValue;
widget.mySelectedAssessment
.selectedDiagnosisCondition =
selectedValue;
});
}, },
); );
showDialog( showDialog(
@ -388,8 +457,13 @@ class _AssessmentPageState extends State<AssessmentPage> {
} }
: null, : null,
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration("Name or ICD", decoration: textFieldSelectorDecoration(
_referTo != null ? _referTo['name'] : null, true), "Condition",
_selectedDiagnosisCondition != null
? _selectedDiagnosisCondition
.nameEn
: null,
true),
enabled: false, enabled: false,
), ),
), ),
@ -400,15 +474,20 @@ class _AssessmentPageState extends State<AssessmentPage> {
Container( Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.070,
child: InkWell( child: InkWell(
onTap: assessmentList != null onTap: model.listOfDiagnosisCondition !=
null
? () { ? () {
ListSelectDialog dialog = ListSelectDialog( MasterKeyDailog dialog = MasterKeyDailog(
list: assessmentList, list: model.listOfDiagnosisCondition,
attributeName: 'name', okText: TranslationBase
attributeValueId: 'id', .of(context)
okText: TranslationBase.of(context).ok, .ok,
okFunction: (selectedValue) { okFunction: (
setState(() {}); MasterKeyModel selectedValue) {
setState(() {
_selectedDiagnosisCondition =
selectedValue;
});
}, },
); );
showDialog( showDialog(
@ -421,8 +500,13 @@ class _AssessmentPageState extends State<AssessmentPage> {
} }
: null, : null,
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration("Condition", decoration: textFieldSelectorDecoration(
_referTo != null ? _referTo['name'] : null, true), "Condition",
_selectedDiagnosisCondition != null
? _selectedDiagnosisCondition
.nameEn
: null,
true),
enabled: false, enabled: false,
), ),
), ),
@ -433,15 +517,22 @@ class _AssessmentPageState extends State<AssessmentPage> {
Container( Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.070,
child: InkWell( child: InkWell(
onTap: assessmentList != null onTap: model.listOfDiagnosisType != null
? () { ? () {
ListSelectDialog dialog = ListSelectDialog( MasterKeyDailog dialog = MasterKeyDailog(
list: assessmentList, list: model.listOfDiagnosisType,
attributeName: 'name', okText: TranslationBase
attributeValueId: 'id', .of(context)
okText: TranslationBase.of(context).ok, .ok,
okFunction: (selectedValue) { okFunction: (
setState(() {}); MasterKeyModel selectedValue) {
setState(() {
_selectedDiagnosisType =
selectedValue;
widget.mySelectedAssessment
.selectedDiagnosisType =
_selectedDiagnosisType;
});
}, },
); );
showDialog( showDialog(
@ -454,8 +545,12 @@ class _AssessmentPageState extends State<AssessmentPage> {
} }
: null, : null,
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration("Type", decoration: textFieldSelectorDecoration(
_referTo != null ? _referTo['name'] : null, true), "Type",
_selectedDiagnosisType != null
? _selectedDiagnosisType.nameEn
: null,
true),
enabled: false, enabled: false,
), ),
), ),
@ -464,18 +559,21 @@ class _AssessmentPageState extends State<AssessmentPage> {
height: 10, height: 10,
), ),
Container( Container(
margin: EdgeInsets.only(left: 0, right: 0, top: 15), margin: EdgeInsets.only(
left: 0, right: 0, top: 15),
child: TextFields( child: TextFields(
hintText: "Remarks", hintText: "Remarks",
fontSize: 13.5, fontSize: 13.5,
// hintColor: Colors.black, // hintColor: Colors.black,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
maxLines: 18, maxLines: 18,
minLines: 8, minLines: 5,
controller: remarksController, controller: remarkController,
validator: (value) { validator: (value) {
if (value == null) if (value == null)
return TranslationBase.of(context).emptyMessage; return TranslationBase
.of(context)
.emptyMessage;
else else
return null; return null;
}), }),
@ -485,10 +583,23 @@ class _AssessmentPageState extends State<AssessmentPage> {
), ),
AppButton( AppButton(
title: "Add".toUpperCase(), title: "Add".toUpperCase(),
onPressed: () {}, onPressed: () {
setState(() {
widget.mySelectedAssessment.remark =
remarkController.text;
widget.mySelectedAssessment
.appointmentId = int.parse(
appointmentIdController.text);
widget.addSelectedAssessment();
});
},
), ),
])), ])),
),
),
))),
); );
});
} }
} }

Loading…
Cancel
Save