|
|
|
@ -457,167 +457,189 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.referral_1,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.patientsreferral,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
PatientReferralScreen(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
|
|
|
|
|
new Container(
|
|
|
|
|
height: 130,
|
|
|
|
|
child: new ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: [
|
|
|
|
|
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.referral_1,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.patientsreferral,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
PatientReferralScreen(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.grey[300],
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.arrival_patients,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.arrivalpatient,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
getRequestHeader(false);
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm":
|
|
|
|
|
_patientSearchFormValues,
|
|
|
|
|
"selectedType": "7",
|
|
|
|
|
"arrivalType": "1"
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.search,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.searchmedicinepatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
SearchMedicinePatientScreen(),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 0),
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.search,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).inPatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
getRequestHeader(true);
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm":
|
|
|
|
|
_patientSearchFormValues,
|
|
|
|
|
"selectedType": "1",
|
|
|
|
|
"arrivalType": "1"
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
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.arrival_patients,
|
|
|
|
|
size: 35,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.arrivalpatient,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
getRequestHeader(false);
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm":
|
|
|
|
|
_patientSearchFormValues,
|
|
|
|
|
"selectedType": "7",
|
|
|
|
|
"arrivalType": "1"
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
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.search,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.searchmedicinepatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
SearchMedicinePatientScreen(),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
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.search,
|
|
|
|
|
size: 32,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.inPatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
onTap: () {
|
|
|
|
|
getRequestHeader(true);
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm":
|
|
|
|
|
_patientSearchFormValues,
|
|
|
|
|
"selectedType": "1",
|
|
|
|
|
"arrivalType": "1"
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
])),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 10,
|
|
|
|
|
// ),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 20,
|
|
|
|
|
// ),
|
|
|
|
|
Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|