dashboard page updated

merge-requests/340/head
Sultan Khan 5 years ago
parent c00d4107b9
commit 05ef7a4b25

@ -738,5 +738,6 @@ const Map<String, Map<String, String>> localizedValues = {
'en': "A Sick leave is on Hold status for this patient", 'en': "A Sick leave is on Hold status for this patient",
'ar': "الإجازة المرضية في حالة الانتظار لهذا المريض" 'ar': "الإجازة المرضية في حالة الانتظار لهذا المريض"
}, },
'no-clinic': {'en': "No Clinic", 'ar': "لا عيادة"} 'no-clinic': {'en': "No Clinic", 'ar': "لا عيادة"},
'otherStatistic': {'en': "Other Statistics", 'ar': "دیگر شماریات"},
}; };

@ -63,6 +63,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
bool isExpanded = false; bool isExpanded = false;
String isInpatient = ""; String isInpatient = "";
var clinicName = []; var clinicName = [];
var clinicId; var clinicId;
void didChangeDependencies() async { void didChangeDependencies() async {
super.didChangeDependencies(); super.didChangeDependencies();
@ -146,48 +147,81 @@ class _DashboardScreenState extends State<DashboardScreen> {
width: MediaQuery.of(context).size.width * .6, width: MediaQuery.of(context).size.width * .6,
// height: 100, // height: 100,
child: projectsProvider.doctorClinicsList.length > 0 child: projectsProvider.doctorClinicsList.length > 0
? DropdownButtonHideUnderline( ? Stack(
child: DropdownButton( children: [
dropdownColor: Colors.white, DropdownButtonHideUnderline(
iconEnabledColor: Colors.white, child: DropdownButton(
isExpanded: true, dropdownColor: Colors.white,
value: clinicId == null iconEnabledColor: Colors.white,
? projectsProvider isExpanded: true,
.doctorClinicsList[0].clinicID value: clinicId == null
: clinicId, ? projectsProvider
iconSize: 25, .doctorClinicsList[0].clinicID
elevation: 16, : clinicId,
selectedItemBuilder: (BuildContext context) { iconSize: 25,
return projectsProvider.doctorClinicsList elevation: 16,
.map((item) { selectedItemBuilder:
return Row( (BuildContext context) {
mainAxisSize: MainAxisSize.max, return projectsProvider.doctorClinicsList
children: <Widget>[ .map((item) {
AppText( return Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
AppText(
item.clinicName,
fontSize:
SizeConfig.textMultiplier *
2.1,
color: Colors.white,
),
],
);
}).toList();
},
onChanged: (newValue) {
clinicId = newValue;
changeClinic(newValue, context, model);
},
items: projectsProvider.doctorClinicsList
.map((item) {
return DropdownMenuItem(
child: Text(
item.clinicName, item.clinicName,
fontSize: textAlign: TextAlign.end,
SizeConfig.textMultiplier * 2.1, ),
value: item.clinicID,
);
}).toList(),
)),
Positioned(
right: projectsProvider.isArabic ? 35 : 0,
top: 0,
child: new Container(
padding: EdgeInsets.all(4),
decoration: new BoxDecoration(
color: Colors.red[800],
borderRadius: BorderRadius.circular(20),
),
constraints: BoxConstraints(
minWidth: 20,
minHeight: 20,
),
child: new Text(
projectsProvider
.doctorClinicsList.length
.toString(),
style: new TextStyle(
color: Colors.white, color: Colors.white,
fontSize: projectsProvider.isArabic
? 10
: 11,
), ),
], textAlign: TextAlign.center,
); ),
}).toList();
},
onChanged: (newValue) {
clinicId = newValue;
changeClinic(newValue, context);
},
items: projectsProvider.doctorClinicsList
.map((item) {
return DropdownMenuItem(
child: Text(
item.clinicName,
textAlign: TextAlign.end,
), ),
value: item.clinicID, )
); ],
}).toList(), )
))
: AppText(TranslationBase.of(context).noClinic), : AppText(TranslationBase.of(context).noClinic),
), ),
), ),
@ -284,7 +318,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
// ), // ),
Container( Container(
color: Colors.white, color: Colors.white,
height: MediaQuery.of(context).size.height * 0.22, height: MediaQuery.of(context).size.height * 0.23,
), ),
], ],
), ),
@ -293,14 +327,68 @@ class _DashboardScreenState extends State<DashboardScreen> {
left: 9, left: 9,
top: MediaQuery.of(context).size.height * .1, top: MediaQuery.of(context).size.height * .1,
child: Container( child: Container(
height: MediaQuery.of(context).size.height * 0.30, height: MediaQuery.of(context).size.height * 0.28,
child: model.dashboardItemsList.length > 0 child: model.dashboardItemsList.length > 0
? new Swiper( ? new Swiper(
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return getSwiperWidget(model)[index]; return getSwiperWidget(model)[index];
}, },
itemCount: 2, itemCount: 3,
// pagination: new SwiperPagination(),
pagination: new SwiperCustomPagination(builder:
(BuildContext context,
SwiperPluginConfig config) {
return new Stack(
alignment: Alignment.bottomCenter,
children: [
Positioned(
bottom: -5,
child: Center(
child: InkWell(
onTap: () {},
child: Container(
child: Row(
mainAxisAlignment:
MainAxisAlignment
.spaceBetween,
children: [
Container(
height: 10,
width: 50,
margin:
EdgeInsets.all(
2),
color: config
.activeIndex ==
0
? Colors.black
: Colors.grey),
Container(
height: 10,
width: 50,
margin:
EdgeInsets.all(
2),
color: config
.activeIndex ==
1
? Colors.black
: Colors.grey),
Container(
height: 10,
width: 50,
margin:
EdgeInsets.all(
2),
color: config
.activeIndex ==
2
? Colors.black
: Colors.grey),
],
)))))
]);
}),
viewportFraction: 0.9, viewportFraction: 0.9,
// scale: 0.9, // scale: 0.9,
// control: new SwiperControl(), // control: new SwiperControl(),
@ -738,119 +826,6 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
DashboardItem(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Container(
margin: EdgeInsets.only(top: 10),
child: Icon(
DoctorApp.lab_results,
size: 40,
color: Colors.white,
),
),
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.white,
),
AppText(
TranslationBase.of(context)
.targetPatient,
textAlign: TextAlign.center,
color: Colors.white,
)
],
),
),
],
),
imageName: '1.png',
opacity: 0.82,
),
DashboardItem(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Container(
margin: EdgeInsets.only(top: 10),
child: Icon(
DoctorApp.radiology,
size: 40,
color: Colors.white,
),
),
Container(
margin: EdgeInsets.only(bottom: 10),
child: Column(
children: <Widget>[
AppText(
clinicName.length.toString(),
fontSize: SizeConfig.textMultiplier * 6,
color: Colors.white,
),
AppText(
TranslationBase.of(context).clinic,
color: Colors.white,
)
],
),
),
],
),
imageName: '2.png',
opacity: 0.9,
),
DashboardItem(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Container(
margin: EdgeInsets.only(top: 10),
child: Icon(
DoctorApp.referral,
size: 40,
color: Colors.white,
),
),
Container(
margin: EdgeInsets.only(bottom: 10),
child: Column(
children: <Widget>[
AppText(
model.dashboardItemsList.length > 0
? getPatientCount(
model.dashboardItemsList[2])
: "",
fontSize: SizeConfig.textMultiplier * 6,
color: Colors.white,
),
AppText(
TranslationBase.of(context).referral,
color: Colors.white,
)
],
),
),
],
),
imageName: '3.png',
opacity: 0.9,
),
],
),
SizedBox( SizedBox(
height: 15, height: 15,
), ),
@ -873,32 +848,27 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Center( Icon(
child: Icon( DoctorApp.referred,
DoctorApp.search_patient_1, size: 50,
size: 50, color: Colors.black,
color: Colors.black,
),
), ),
Column( AppText(
children: [ TranslationBase.of(context).myReferredPatient,
AppText( color: Colors.black,
TranslationBase.of(context).searchAbout, textAlign: TextAlign.center,
color: Colors.black,
textAlign: TextAlign.center,
),
AppText(
TranslationBase.of(context).patient,
color: Colors.black,
textAlign: TextAlign.center,
)
],
) )
], ],
), ),
hasBorder: true, hasBorder: true,
onTap: () { onTap: () {
Navigator.of(context).pushNamed(PATIENT_SEARCH); Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ReferredPatientScreen(),
// MyReferredPatient(),
),
);
}, },
), ),
DashboardItem( DashboardItem(
@ -906,23 +876,14 @@ class _DashboardScreenState extends State<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Icon(
DoctorApp.mail, DoctorApp.referral,
size: 50, size: 50,
color: Colors.black, color: Colors.black,
), ),
Column( AppText(
children: [ TranslationBase.of(context).myReferralPatient,
AppText( textAlign: TextAlign.center,
TranslationBase.of(context).theDoctor, color: Colors.black,
textAlign: TextAlign.center,
color: Colors.black,
),
AppText(
TranslationBase.of(context).reply,
textAlign: TextAlign.center,
color: Colors.black,
),
],
) )
], ],
), ),
@ -931,7 +892,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => DoctorReplyScreen(), builder: (context) =>
MyReferralPatientScreen(),
), ),
); );
}, },
@ -941,12 +903,11 @@ class _DashboardScreenState extends State<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Icon(
DoctorApp.medicine_search, DoctorApp.patient,
size: 50, size: 50,
color: Colors.black,
), ),
AppText( AppText(
TranslationBase.of(context).searchMedicine, TranslationBase.of(context).arrived,
color: Colors.black, color: Colors.black,
textAlign: TextAlign.center, textAlign: TextAlign.center,
) )
@ -954,14 +915,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
hasBorder: true, hasBorder: true,
onTap: () { onTap: () {
Navigator.push( Navigator.of(context)
context, .pushNamed(PATIENTS, arguments: {
MaterialPageRoute( "patientSearchForm": _patientSearchFormValues,
builder: (context) => MedicineSearchScreen(), "selectedType": "7"
), });
);
}, },
), )
], ],
), ),
SizedBox( SizedBox(
@ -975,35 +935,32 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Center(
DoctorApp.qr_code, child: Icon(
size: 50, DoctorApp.search_patient_1,
color: Colors.black, size: 50,
color: Colors.black,
),
), ),
Column( Column(
children: [ children: [
AppText( AppText(
projectsProvider.isArabic TranslationBase.of(context).searchAbout,
? TranslationBase.of(context).reader
: TranslationBase.of(context).qr,
color: Colors.black, color: Colors.black,
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
AppText( AppText(
projectsProvider.isArabic TranslationBase.of(context).patient,
? TranslationBase.of(context).qr
: TranslationBase.of(context).reader,
color: Colors.black, color: Colors.black,
textAlign: TextAlign.center, textAlign: TextAlign.center,
), )
], ],
) )
], ],
), ),
// imageName: '1.png',
hasBorder: true, hasBorder: true,
onTap: () { onTap: () {
Navigator.of(context).pushNamed(QR_READER); Navigator.of(context).pushNamed(PATIENT_SEARCH);
}, },
), ),
DashboardItem( DashboardItem(
@ -1011,14 +968,14 @@ class _DashboardScreenState extends State<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Icon(
DoctorApp.referral, DoctorApp.medicine_search,
size: 50, size: 50,
color: Colors.black, color: Colors.black,
), ),
AppText( AppText(
TranslationBase.of(context).myReferralPatient, TranslationBase.of(context).searchMedicine,
textAlign: TextAlign.center,
color: Colors.black, color: Colors.black,
textAlign: TextAlign.center,
) )
], ],
), ),
@ -1027,8 +984,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => builder: (context) => MedicineSearchScreen(),
MyReferralPatientScreen(),
), ),
); );
}, },
@ -1038,26 +994,34 @@ class _DashboardScreenState extends State<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Icon(
DoctorApp.referred, DoctorApp.qr_code,
size: 50, size: 50,
color: Colors.black, color: Colors.black,
), ),
AppText( Column(
TranslationBase.of(context).myReferredPatient, children: [
color: Colors.black, AppText(
textAlign: TextAlign.center, 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, hasBorder: true,
onTap: () { onTap: () {
Navigator.push( Navigator.of(context).pushNamed(QR_READER);
context,
MaterialPageRoute(
builder: (context) => ReferredPatientScreen(),
// MyReferredPatient(),
),
);
}, },
), ),
], ],
@ -1104,23 +1068,34 @@ class _DashboardScreenState extends State<DashboardScreen> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ children: <Widget>[
Icon( Icon(
DoctorApp.patient, DoctorApp.mail,
size: 50, size: 50,
),
AppText(
TranslationBase.of(context).arrived,
color: Colors.black, color: Colors.black,
textAlign: TextAlign.center, ),
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, hasBorder: true,
onTap: () { onTap: () {
Navigator.of(context) Navigator.push(
.pushNamed(PATIENTS, arguments: { context,
"patientSearchForm": _patientSearchFormValues, MaterialPageRoute(
"selectedType": "7" builder: (context) => DoctorReplyScreen(),
}); ),
);
}, },
) )
], ],
@ -1218,72 +1193,72 @@ class _DashboardScreenState extends State<DashboardScreen> {
return value == 0 ? 1 : value; return value == 0 ? 1 : value;
} }
showCupertinoPicker( // showCupertinoPicker(
{context, List<ClinicModel> actionList, decKey, onSelectFun}) { // {context, List<ClinicModel> actionList, decKey, onSelectFun}) {
showModalBottomSheet( // showModalBottomSheet(
isDismissible: false, // isDismissible: false,
isScrollControlled: true, // isScrollControlled: true,
context: context, // context: context,
builder: (BuildContext builder) { // builder: (BuildContext builder) {
return Container( // return Container(
// height: 500, // // height: 500,
height: SizeConfig.realScreenHeight * 0.4, // height: SizeConfig.realScreenHeight * 0.4,
color: Color(0xfff7f7f7), // color: Color(0xfff7f7f7),
child: Column( // child: Column(
mainAxisAlignment: MainAxisAlignment.end, // mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[ // children: <Widget>[
Container( // Container(
color: Color(0xfff7f7f7), // color: Color(0xfff7f7f7),
child: Row( // child: Row(
mainAxisAlignment: MainAxisAlignment.end, // mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[ // children: <Widget>[
CupertinoButton( // CupertinoButton(
child: AppText(TranslationBase.of(context).cancel // child: AppText(TranslationBase.of(context).cancel
// style: TextStyle(context) // // style: TextStyle(context)
), // ),
onPressed: () { // onPressed: () {
Navigator.pop(context); // Navigator.pop(context);
}, // },
), // ),
CupertinoButton( // CupertinoButton(
child: AppText(TranslationBase.of(context).done // child: AppText(TranslationBase.of(context).done
// style: textStyle(context), // // style: textStyle(context),
), // ),
onPressed: () { // onPressed: () {
Navigator.pop(context); // Navigator.pop(context);
// onSelectFun(cupertinoPickerIndex); // // onSelectFun(cupertinoPickerIndex);
}, // },
) // )
], // ],
), // ),
), // ),
Container( // Container(
height: SizeConfig.realScreenHeight * 0.3, // height: SizeConfig.realScreenHeight * 0.3,
color: Color(0xfff7f7f7), // color: Color(0xfff7f7f7),
child: Column( // child: Column(
children: actionList // children: actionList
.map((e) => Flexible( // .map((e) => Flexible(
child: Container( // child: Container(
height: 50, // height: 50,
child: InkWell( // child: InkWell(
onTap: () => // onTap: () => changeClinic(
changeClinic(e.clinicID, context), // e.clinicID, context, model),
child: AppText( // child: AppText(
e.clinicName, // e.clinicName,
fontSize: // fontSize:
SizeConfig.textMultiplier * 1.9, // SizeConfig.textMultiplier * 1.9,
)), // )),
), // ),
)) // ))
.toList(), // .toList(),
)) // ))
], // ],
), // ),
); // );
}); // });
} // }
changeClinic(clinicId, BuildContext context) async { changeClinic(clinicId, BuildContext context, model) async {
// Navigator.pop(context); // Navigator.pop(context);
changeIsLoading(true); changeIsLoading(true);
Map profile = await sharedPref.getObj(DOCTOR_PROFILE); Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
@ -1300,6 +1275,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
authProvider.getDocProfiles(docInfo.toJson()).then((res) async { authProvider.getDocProfiles(docInfo.toJson()).then((res) async {
changeIsLoading(false); changeIsLoading(false);
sharedPref.setObj(DOCTOR_PROFILE, res['DoctorProfileList'][0]); sharedPref.setObj(DOCTOR_PROFILE, res['DoctorProfileList'][0]);
model.getDashboard();
}).catchError((err) { }).catchError((err) {
changeIsLoading(false); changeIsLoading(false);
helpers.showErrorToast(err); helpers.showErrorToast(err);
@ -1420,7 +1396,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
AppText( AppText(
getPatientCount(model.dashboardItemsList[0]) getPatientCount(model.dashboardItemsList[0])
.toString(), .toString(),
fontSize: 11, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
) )
], ],
@ -1502,18 +1478,166 @@ class _DashboardScreenState extends State<DashboardScreen> {
AppText( AppText(
getPatientCount(model.dashboardItemsList[1]) getPatientCount(model.dashboardItemsList[1])
.toString(), .toString(),
fontSize: 11, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
) )
], ],
), ),
top: MediaQuery.of(context).size.height * 0.12, top: MediaQuery.of(context).size.height * 0.12,
left: MediaQuery.of(context).size.width * 0.11) left: MediaQuery.of(context).size.width * 0.10)
]), ]),
), ),
], ],
)), )),
])) ])),
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,
),
],
)
],
))
]; ];
} }
} }

@ -1123,6 +1123,9 @@ class TranslationBase {
String get sickleaveonhold => String get sickleaveonhold =>
localizedValues['sickleaveonhold'][locale.languageCode]; localizedValues['sickleaveonhold'][locale.languageCode];
String get noClinic => localizedValues['no-clinic'][locale.languageCode]; String get noClinic => localizedValues['no-clinic'][locale.languageCode];
String get otherStatistic =>
localizedValues['otherStatistic'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

Loading…
Cancel
Save