|
|
|
|
@ -222,7 +222,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
return DropdownMenuItem(
|
|
|
|
|
child: AppText(
|
|
|
|
|
item.clinicName,
|
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
),
|
|
|
|
|
value: item.clinicID,
|
|
|
|
|
);
|
|
|
|
|
@ -470,7 +470,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: [
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
@ -481,10 +481,25 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.inpatient,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0.1,
|
|
|
|
|
right: 0.5,
|
|
|
|
|
width: 23.0,
|
|
|
|
|
height: 25.0,
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.inpatient,
|
|
|
|
|
size: 65,
|
|
|
|
|
color: Colors.white12,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.inpatient,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
@ -528,10 +543,26 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.arrival_patients,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0.1,
|
|
|
|
|
right: 0.5,
|
|
|
|
|
width: 23.0,
|
|
|
|
|
height: 25.0,
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp
|
|
|
|
|
.arrival_patients,
|
|
|
|
|
size: 65,
|
|
|
|
|
color: Colors.white38,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.arrival_patients,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
@ -546,25 +577,30 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
|
|
String date = DateUtils.convertDateToFormat(
|
|
|
|
|
DateTime(DateTime.now().year, DateTime.now().month,
|
|
|
|
|
DateTime.now().day ),
|
|
|
|
|
'yyyy-MM-dd');
|
|
|
|
|
String date =
|
|
|
|
|
DateUtils.convertDateToFormat(
|
|
|
|
|
DateTime(
|
|
|
|
|
DateTime.now().year,
|
|
|
|
|
DateTime.now().month,
|
|
|
|
|
DateTime.now().day),
|
|
|
|
|
'yyyy-MM-dd');
|
|
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
OutPatientsScreen(
|
|
|
|
|
patientSearchRequestModel:
|
|
|
|
|
PatientSearchRequestModel(from: date, to: date,doctorID: authProvider.doctorProfile.doctorID)
|
|
|
|
|
),
|
|
|
|
|
builder: (context) => OutPatientsScreen(
|
|
|
|
|
patientSearchRequestModel:
|
|
|
|
|
PatientSearchRequestModel(
|
|
|
|
|
from: date,
|
|
|
|
|
to: date,
|
|
|
|
|
doctorID: authProvider
|
|
|
|
|
.doctorProfile
|
|
|
|
|
.doctorID)),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
@ -575,10 +611,26 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.referral_1,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0.1,
|
|
|
|
|
right: 0.5,
|
|
|
|
|
width: 23.0,
|
|
|
|
|
height: 25.0,
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.referral_1,
|
|
|
|
|
size: 65,
|
|
|
|
|
color: Colors.white10
|
|
|
|
|
.withOpacity(0.1),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.referral_1,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
@ -603,86 +655,86 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// HomePageCard(
|
|
|
|
|
// color: Colors.red[800],
|
|
|
|
|
// margin: EdgeInsets.all(5),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment:
|
|
|
|
|
// MainAxisAlignment.center,
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
// top: 10, left: 10, right: 0),
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.discharge_patients,
|
|
|
|
|
// size: 35,
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// )),
|
|
|
|
|
// Container(
|
|
|
|
|
// padding: EdgeInsets.all(10),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// 'Discharged Patients',
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// textAlign: TextAlign.start,
|
|
|
|
|
// fontSize: 15,
|
|
|
|
|
// ))
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: false,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (context) =>
|
|
|
|
|
// DischargedPatient(),
|
|
|
|
|
// // MyReferredPatient(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// HomePageCard(
|
|
|
|
|
// color: Colors.grey[300],
|
|
|
|
|
// margin: EdgeInsets.all(5),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisAlignment:
|
|
|
|
|
// MainAxisAlignment.center,
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
|
// top: 10, left: 10, right: 0),
|
|
|
|
|
// child: Icon(
|
|
|
|
|
// DoctorApp.referral_discharge,
|
|
|
|
|
// size: 35,
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// )),
|
|
|
|
|
// Container(
|
|
|
|
|
// padding: EdgeInsets.all(10),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// 'Referral Discharged',
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// textAlign: TextAlign.start,
|
|
|
|
|
// fontSize: 15,
|
|
|
|
|
// ))
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// hasBorder: false,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (context) =>
|
|
|
|
|
// ReferralDischargedPatientPage(),
|
|
|
|
|
// // MyReferredPatient(),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.discharge_patients,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
'Discharged Patients',
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
DischargedPatient(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.grey[300],
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.referral_discharge,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
'Referral Discharged',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
ReferralDischargedPatientPage(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
@ -693,10 +745,25 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.search,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0.1,
|
|
|
|
|
right: 0.5,
|
|
|
|
|
width: 23.0,
|
|
|
|
|
height: 25.0,
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.search,
|
|
|
|
|
size: 65,
|
|
|
|
|
color: Colors.white10,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.search,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
@ -720,7 +787,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
color: Color(0xffC9C9C9),
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
@ -731,17 +798,33 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.search_medicines,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Stack(
|
|
|
|
|
children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0.1,
|
|
|
|
|
right: 0.5,
|
|
|
|
|
width: 23.0,
|
|
|
|
|
height: 25.0,
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp
|
|
|
|
|
.search_medicines,
|
|
|
|
|
color: Colors.black12,
|
|
|
|
|
size: 65,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
DoctorApp.search_medicines,
|
|
|
|
|
size: 40,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.searchMedicine,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
|