|
|
|
@ -753,7 +753,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
sliderActiveIndex == 0
|
|
|
|
|
sliderActiveIndex == 1
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
@ -793,7 +793,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
})))
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: sliderActiveIndex == 1
|
|
|
|
|
: sliderActiveIndex == 0
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
@ -988,7 +988,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm": _patientSearchFormValues,
|
|
|
|
|
"selectedType": "7"
|
|
|
|
|
"selectedType": "7",
|
|
|
|
|
"arrivalType": "1"
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
@ -1024,12 +1025,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
SearchMedicinePatientScreen(),
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
// Navigator.of(context)
|
|
|
|
|
// .pushNamed(PATIENTS, arguments: {
|
|
|
|
|
// "patientSearchForm": _patientSearchFormValues,
|
|
|
|
|
// "selectedType": "7"
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
@ -1037,132 +1032,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Center(
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.search_patient_1,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).searchAbout,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).patient,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.of(context).pushNamed(PATIENT_SEARCH);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.medicine_search,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).searchMedicine,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// // Navigator.push(
|
|
|
|
|
// // context,
|
|
|
|
|
// // MaterialPageRoute(
|
|
|
|
|
// // builder: (context) => MedicineSearchScreen(),
|
|
|
|
|
// // ),
|
|
|
|
|
// // );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.leaves,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).rescheduleLeaves,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (context) =>
|
|
|
|
|
// AddRescheduleLeavScreen(),
|
|
|
|
|
// // MyReferredPatient(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.qr_code,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// projectsProvider.isArabic
|
|
|
|
|
// ? TranslationBase.of(context).reader
|
|
|
|
|
// : TranslationBase.of(context).qr,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// projectsProvider.isArabic
|
|
|
|
|
// ? TranslationBase.of(context).qr
|
|
|
|
|
// : TranslationBase.of(context).reader,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// // imageName: '1.png',
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.of(context).pushNamed(QR_READER);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
//],
|
|
|
|
|
//),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
@ -1173,41 +1042,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Icon(
|
|
|
|
|
// DoctorApp.mail,
|
|
|
|
|
// size: 50,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).theDoctor,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).reply,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (context) => DoctorReplyScreen(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
@ -1224,41 +1058,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// static List<charts.Series<GaugeSegment, String>> _createInpatientData(model) {
|
|
|
|
|
// final data = [
|
|
|
|
|
// new GaugeSegment(
|
|
|
|
|
// model.dashboardItemsList[0].summaryoptions[0].kPIParameter,
|
|
|
|
|
// getValue(model.dashboardItemsList[0].summaryoptions[0].value),
|
|
|
|
|
// charts.MaterialPalette.blue.shadeDefault),
|
|
|
|
|
// new GaugeSegment(
|
|
|
|
|
// model.dashboardItemsList[0].summaryoptions[1].kPIParameter,
|
|
|
|
|
// getValue(model.dashboardItemsList[0].summaryoptions[1].value),
|
|
|
|
|
// charts.MaterialPalette.cyan.shadeDefault),
|
|
|
|
|
// new GaugeSegment(
|
|
|
|
|
// model.dashboardItemsList[0].summaryoptions[2].kPIParameter,
|
|
|
|
|
// getValue(model.dashboardItemsList[0].summaryoptions[2].value),
|
|
|
|
|
// charts.MaterialPalette.red.shadeDefault),
|
|
|
|
|
// new GaugeSegment(
|
|
|
|
|
// model.dashboardItemsList[0].summaryoptions[3].kPIParameter,
|
|
|
|
|
// getValue(model.dashboardItemsList[0].summaryoptions[3].value),
|
|
|
|
|
// charts.MaterialPalette.deepOrange.shadeDefault.lighter),
|
|
|
|
|
// new GaugeSegment(
|
|
|
|
|
// model.dashboardItemsList[0].summaryoptions[4].kPIParameter,
|
|
|
|
|
// getValue(model.dashboardItemsList[0].summaryoptions[4].value),
|
|
|
|
|
// charts.MaterialPalette.green.shadeDefault),
|
|
|
|
|
// ];
|
|
|
|
|
|
|
|
|
|
// return [
|
|
|
|
|
// new charts.Series<GaugeSegment, String>(
|
|
|
|
|
// id: 'Segments',
|
|
|
|
|
// domainFn: (GaugeSegment segment, _) => segment.segment,
|
|
|
|
|
// measureFn: (GaugeSegment segment, _) => segment.size,
|
|
|
|
|
// data: data,
|
|
|
|
|
// colorFn: (GaugeSegment segment, _) => segment.color,
|
|
|
|
|
// )
|
|
|
|
|
// ];
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
static List<charts.Series<GaugeSegment, String>> _createReferralData(model) {
|
|
|
|
|
final data = [
|
|
|
|
|
new GaugeSegment(
|
|
|
|
@ -1290,71 +1089,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
return value == 0 ? 1 : value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// showCupertinoPicker(
|
|
|
|
|
// {context, List<ClinicModel> actionList, decKey, onSelectFun}) {
|
|
|
|
|
// showModalBottomSheet(
|
|
|
|
|
// isDismissible: false,
|
|
|
|
|
// isScrollControlled: true,
|
|
|
|
|
// context: context,
|
|
|
|
|
// builder: (BuildContext builder) {
|
|
|
|
|
// return Container(
|
|
|
|
|
// // height: 500,
|
|
|
|
|
// height: SizeConfig.realScreenHeight * 0.4,
|
|
|
|
|
// color: Color(0xfff7f7f7),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// color: Color(0xfff7f7f7),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// CupertinoButton(
|
|
|
|
|
// child: AppText(TranslationBase.of(context).cancel
|
|
|
|
|
// // style: TextStyle(context)
|
|
|
|
|
// ),
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// CupertinoButton(
|
|
|
|
|
// child: AppText(TranslationBase.of(context).done
|
|
|
|
|
// // style: textStyle(context),
|
|
|
|
|
// ),
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// // onSelectFun(cupertinoPickerIndex);
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// height: SizeConfig.realScreenHeight * 0.3,
|
|
|
|
|
// color: Color(0xfff7f7f7),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: actionList
|
|
|
|
|
// .map((e) => Flexible(
|
|
|
|
|
// child: Container(
|
|
|
|
|
// height: 50,
|
|
|
|
|
// child: InkWell(
|
|
|
|
|
// onTap: () => changeClinic(
|
|
|
|
|
// e.clinicID, context, model),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// e.clinicName,
|
|
|
|
|
// fontSize:
|
|
|
|
|
// SizeConfig.textMultiplier * 1.9,
|
|
|
|
|
// )),
|
|
|
|
|
// ),
|
|
|
|
|
// ))
|
|
|
|
|
// .toList(),
|
|
|
|
|
// ))
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
changeClinic(clinicId, BuildContext context, model) async {
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
changeIsLoading(true);
|
|
|
|
@ -1528,80 +1262,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
margin: 5,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
|
child: getOutPatientStack(model.dashboardItemsList[0]))),
|
|
|
|
|
child: getOutPatientStack(model.dashboardItemsList[1]))),
|
|
|
|
|
RoundedContainer(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.32,
|
|
|
|
|
margin: 5,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
|
child: getOutPatientStack(model.dashboardItemsList[1]))),
|
|
|
|
|
// Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[0].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[0].value,
|
|
|
|
|
// Colors.blue),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[1].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[1].value,
|
|
|
|
|
// Colors.cyan),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[2].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[2].value,
|
|
|
|
|
// Colors.red),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[3].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[3].value,
|
|
|
|
|
// Colors.orange),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[4].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[0]
|
|
|
|
|
// .summaryoptions[4].value,
|
|
|
|
|
// Colors.green),
|
|
|
|
|
// ],
|
|
|
|
|
// ))),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// flex: 3,
|
|
|
|
|
// child: Stack(children: [
|
|
|
|
|
// Container(
|
|
|
|
|
// child: GaugeChart(_createInpatientData(model))),
|
|
|
|
|
// Positioned(
|
|
|
|
|
// child: Center(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).inPatient,
|
|
|
|
|
// fontSize: 11,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// getPatientCount(model.dashboardItemsList[0])
|
|
|
|
|
// .toString(),
|
|
|
|
|
// fontSize: 18,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// )),
|
|
|
|
|
// top: MediaQuery.of(context).size.height * 0.12,
|
|
|
|
|
// left: MediaQuery.of(context).size.width * 0.11)
|
|
|
|
|
// ])),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
//])
|
|
|
|
|
//),
|
|
|
|
|
child: getOutPatientStack(model.dashboardItemsList[0]))),
|
|
|
|
|
RoundedContainer(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.24,
|
|
|
|
|
margin: 5,
|
|
|
|
@ -1653,18 +1320,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
model.dashboardItemsList[2]
|
|
|
|
|
.summaryoptions[2].value,
|
|
|
|
|
Colors.red),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[2]
|
|
|
|
|
// .summaryoptions[3].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[2]
|
|
|
|
|
// .summaryoptions[3].value,
|
|
|
|
|
// Colors.orange),
|
|
|
|
|
// rowCount(
|
|
|
|
|
// model.dashboardItemsList[2]
|
|
|
|
|
// .summaryoptions[4].kPIParameter,
|
|
|
|
|
// model.dashboardItemsList[2]
|
|
|
|
|
// .summaryoptions[4].value,
|
|
|
|
|
// Colors.green),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
@ -1679,12 +1334,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).,
|
|
|
|
|
// fontSize: 11,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// textOverflow: TextOverflow.ellipsis,
|
|
|
|
|
// ),
|
|
|
|
|
AppText(
|
|
|
|
|
getPatientCount(model.dashboardItemsList[2])
|
|
|
|
|
.toString(),
|
|
|
|
@ -1701,154 +1350,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
])),
|
|
|
|
|
// RoundedContainer(
|
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.24,
|
|
|
|
|
// margin: 5,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.all(10),
|
|
|
|
|
// child: AppText(TranslationBase.of(context).otherStatistic)),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// width: MediaQuery.of(context).size.width * 0.25,
|
|
|
|
|
// height: MediaQuery.of(context).orientation ==
|
|
|
|
|
// Orientation.portrait
|
|
|
|
|
// ? MediaQuery.of(context).size.height * 0.18
|
|
|
|
|
// : MediaQuery.of(context).size.height * 0.36,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(top: 5),
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.lab_results,
|
|
|
|
|
// size: 40,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// // margin: EdgeInsets.only(bottom: 10),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// AppText(
|
|
|
|
|
// model.dashboardItemsList.length > 0
|
|
|
|
|
// ? getPatientCount(
|
|
|
|
|
// model.dashboardItemsList[5])
|
|
|
|
|
// : "",
|
|
|
|
|
// fontSize: SizeConfig.textMultiplier * 6,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).targetPatient,
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// //imageName: '1.png',
|
|
|
|
|
// opacity: 0,
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// color: Colors.black12,
|
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.18,
|
|
|
|
|
// width: 1,
|
|
|
|
|
// ),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// width: MediaQuery.of(context).size.width * 0.25,
|
|
|
|
|
// height: MediaQuery.of(context).orientation ==
|
|
|
|
|
// Orientation.portrait
|
|
|
|
|
// ? MediaQuery.of(context).size.height * 0.18
|
|
|
|
|
// : MediaQuery.of(context).size.height * 0.36,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(top: 5),
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.radiology,
|
|
|
|
|
// size: 40,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(bottom: 5),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// AppText(
|
|
|
|
|
// clinicName.length.toString(),
|
|
|
|
|
// fontSize: SizeConfig.textMultiplier * 6,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).clinic,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// //imageName: '2.png',
|
|
|
|
|
// opacity: 0,
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// color: Colors.black12,
|
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.18,
|
|
|
|
|
// width: 1,
|
|
|
|
|
// ),
|
|
|
|
|
// DashboardItem(
|
|
|
|
|
// width: MediaQuery.of(context).size.width * 0.25,
|
|
|
|
|
// height: MediaQuery.of(context).orientation ==
|
|
|
|
|
// Orientation.portrait
|
|
|
|
|
// ? MediaQuery.of(context).size.height * 0.18
|
|
|
|
|
// : MediaQuery.of(context).size.height * 0.36,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(top: 5),
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.referral,
|
|
|
|
|
// size: 40,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: EdgeInsets.only(bottom: 5),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// AppText(
|
|
|
|
|
// model.dashboardItemsList.length > 0
|
|
|
|
|
// ? getPatientCount(
|
|
|
|
|
// model.dashboardItemsList[2])
|
|
|
|
|
// : "",
|
|
|
|
|
// fontSize: SizeConfig.textMultiplier * 6,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context).referral,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// //imageName: '3.png',
|
|
|
|
|
// opacity: 0,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ))
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|