|
|
|
|
@ -568,18 +568,26 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
builder: (BuildContext context, ProcedureViewModel model, Widget child) =>
|
|
|
|
|
NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: DraggableScrollableSheet(
|
|
|
|
|
minChildSize: 0.90,
|
|
|
|
|
initialChildSize: 0.95,
|
|
|
|
|
maxChildSize: 1.0,
|
|
|
|
|
builder: (BuildContext context, ScrollController scrollController) {
|
|
|
|
|
return SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 810,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 1.20,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Select Procedure'.toUpperCase(),
|
|
|
|
|
'Search Procedure Category'.toUpperCase(),
|
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5.0,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
@ -595,8 +603,8 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
setState(() {
|
|
|
|
|
selectedCategory = selectedValue;
|
|
|
|
|
model.getProcedureCategory(
|
|
|
|
|
categoryName:
|
|
|
|
|
selectedCategory['categoryName']);
|
|
|
|
|
categoryName: selectedCategory[
|
|
|
|
|
'categoryName']);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
@ -626,9 +634,12 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (widget.model.categoriesList.length != 0)
|
|
|
|
|
EntityListCheckboxSearchWidget(
|
|
|
|
|
NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: EntityListCheckboxSearchWidget(
|
|
|
|
|
model: widget.model,
|
|
|
|
|
masterList: widget.model.categoriesList[0].entityList,
|
|
|
|
|
masterList:
|
|
|
|
|
widget.model.categoriesList[0].entityList,
|
|
|
|
|
removeHistory: (item) {
|
|
|
|
|
setState(() {
|
|
|
|
|
entityList.remove(item);
|
|
|
|
|
@ -646,6 +657,7 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
isEntityListSelected: (master) =>
|
|
|
|
|
isEntityListSelected(master),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15.0,
|
|
|
|
|
),
|
|
|
|
|
@ -676,12 +688,14 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
height: 50.0,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(SizeConfig.widthMultiplier * 5),
|
|
|
|
|
margin: EdgeInsets.all(
|
|
|
|
|
SizeConfig.widthMultiplier * 5),
|
|
|
|
|
child: Wrap(
|
|
|
|
|
alignment: WrapAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppButton(
|
|
|
|
|
title: 'add Selected Procedures'.toUpperCase(),
|
|
|
|
|
title:
|
|
|
|
|
'add Selected Procedures'.toUpperCase(),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
postProcedure(
|
|
|
|
|
@ -700,7 +714,8 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
@ -760,7 +775,7 @@ void updateProcedureForm(context,
|
|
|
|
|
isScrollControlled: true,
|
|
|
|
|
builder: (BuildContext bc) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: 400,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.55,
|
|
|
|
|
child: Form(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
|
|
|
|
|
|