|
|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/PatientSearchViewModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
@ -37,7 +39,6 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
super.dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
@ -209,50 +210,100 @@ class _InPatientListPageState extends State<InPatientListPage> {
|
|
|
|
|
height: 0,
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(color: Colors.grey, width: 0.5),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.5,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount:
|
|
|
|
|
widget.patientSearchViewModel.InpatientClinicList.length,
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
isAllClinic = false;
|
|
|
|
|
showBottomSheet = false;
|
|
|
|
|
selectedClinicName = widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index];
|
|
|
|
|
});
|
|
|
|
|
widget.patientSearchViewModel.filterByClinic(
|
|
|
|
|
clinicName: widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index]);
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Radio(
|
|
|
|
|
value: widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index],
|
|
|
|
|
groupValue: selectedClinicName,
|
|
|
|
|
onChanged: (value) {
|
|
|
|
|
padding: EdgeInsets.only(top: 13, left: 10, right: 10),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
showBottomSheet = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Icon(DoctorApp.close_1,
|
|
|
|
|
size: SizeConfig.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
4.5,
|
|
|
|
|
color: Color(0xFF2B353E)))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Select Clinic :",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: widget
|
|
|
|
|
.patientSearchViewModel.InpatientClinicList.length,
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
setState(() {
|
|
|
|
|
isAllClinic = false;
|
|
|
|
|
showBottomSheet = false;
|
|
|
|
|
});
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.filterByClinic(clinicName: value);
|
|
|
|
|
isAllClinic = false;
|
|
|
|
|
showBottomSheet = false;
|
|
|
|
|
selectedClinicName = widget
|
|
|
|
|
.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index];
|
|
|
|
|
});
|
|
|
|
|
widget.patientSearchViewModel.filterByClinic(
|
|
|
|
|
clinicName: widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index]);
|
|
|
|
|
},
|
|
|
|
|
activeColor: Colors.red,
|
|
|
|
|
),
|
|
|
|
|
AppText(widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index]),
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
}),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Radio(
|
|
|
|
|
value: widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index],
|
|
|
|
|
groupValue: selectedClinicName,
|
|
|
|
|
onChanged: (value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
setState(() {
|
|
|
|
|
isAllClinic = false;
|
|
|
|
|
showBottomSheet = false;
|
|
|
|
|
selectedClinicName = widget
|
|
|
|
|
.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index];
|
|
|
|
|
});
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.filterByClinic(clinicName: value);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
activeColor: Colors.red,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
widget.patientSearchViewModel
|
|
|
|
|
.InpatientClinicList[index],
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|