|
|
|
@ -4,6 +4,7 @@ import 'package:doctor_app_flutter/providers/medicine_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/providers/hospital_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/providers/referral_patient_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/providers/referred_patient_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/QR_reader_screen.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/medicine/medicine_search_screen.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
@ -42,19 +43,37 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Scaffold(
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 1.09,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
"Today's Statistics",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 10, top: 10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).familyMedicine,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 10, top: 10, right: 10),
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.settings,
|
|
|
|
|
size: SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
))
|
|
|
|
|
]),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 10, top: 5),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).todayStatistics,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 3,
|
|
|
|
@ -76,7 +95,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
AppText("38",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 4),
|
|
|
|
|
AppText("Out-Patients",
|
|
|
|
|
AppText(TranslationBase.of(context).outPatients,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.1,
|
|
|
|
|
color: Colors.grey[800]),
|
|
|
|
@ -99,16 +118,17 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.stretch,
|
|
|
|
|
CrossAxisAlignment.stretch,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
"Arrived",
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
TranslationBase.of(context).arrived,
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
"Not Arrived",
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.notArrived,
|
|
|
|
|
"23",
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -117,21 +137,21 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.stretch,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
"ER",
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
"Walk-in",
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
TranslationBase.of(context).er,
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItemTexts(
|
|
|
|
|
TranslationBase.of(context).walkIn,
|
|
|
|
|
"23",
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
))
|
|
|
|
@ -148,7 +168,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: new DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'lab_results.svg',
|
|
|
|
|
"08",
|
|
|
|
|
"Lab Result",
|
|
|
|
|
TranslationBase.of(context).labResult,
|
|
|
|
|
backgroundColor: Colors.black45,
|
|
|
|
|
// valueFontColor: Colors.white,
|
|
|
|
|
// titleFontColor: Colors.white,
|
|
|
|
@ -160,7 +180,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: new DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'radiology.svg',
|
|
|
|
|
"10",
|
|
|
|
|
"Radiology",
|
|
|
|
|
TranslationBase.of(context).radiology,
|
|
|
|
|
backgroundColor: Colors.black45,
|
|
|
|
|
// valueFontColor: Colors.white,
|
|
|
|
|
// titleFontColor: Colors.white,
|
|
|
|
@ -171,7 +191,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: new DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'referral.svg',
|
|
|
|
|
"05",
|
|
|
|
|
"Referral",
|
|
|
|
|
TranslationBase.of(context).referral,
|
|
|
|
|
backgroundColor: Colors.black45,
|
|
|
|
|
// valueFontColor: Colors.white,
|
|
|
|
|
// titleFontColor: Colors.white,
|
|
|
|
@ -200,7 +220,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: new DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'operations.svg',
|
|
|
|
|
"23",
|
|
|
|
|
"Operations",
|
|
|
|
|
TranslationBase.of(context).operations,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
backgroundColor: Colors.red[900],
|
|
|
|
|
)),
|
|
|
|
@ -212,7 +232,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
"Patient Services",
|
|
|
|
|
TranslationBase.of(context).patientServices,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
@ -228,7 +248,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'search_patient.svg',
|
|
|
|
|
"",
|
|
|
|
|
"Search Patient",
|
|
|
|
|
TranslationBase.of(context).searchPatient,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
valueFontColor: Colors.black,
|
|
|
|
@ -258,7 +278,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
child: DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'message_icon.svg',
|
|
|
|
|
"",
|
|
|
|
|
"Doctor Reply",
|
|
|
|
|
TranslationBase.of(context).doctorReply,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
valueFontColor: Colors.black,
|
|
|
|
@ -365,7 +385,25 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(flex: 1, child: Container())
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).pushNamed(QR_READER);
|
|
|
|
|
},
|
|
|
|
|
child: DashboardItemIconText(
|
|
|
|
|
widget.iconURL + 'qr-code.svg',
|
|
|
|
|
"",
|
|
|
|
|
"QR Reader",
|
|
|
|
|
showBorder: true,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
valueFontColor: Colors.black,
|
|
|
|
|
titleFontColor: Colors.black,
|
|
|
|
|
iconColor: Colors.black,
|
|
|
|
|
titleFontSize: SizeConfig.textMultiplier * 2,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|