|
|
|
@ -7,6 +7,7 @@ import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/home/dashboard_slider-item-widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/home/dashboard_swipe_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/home/home_patient_card.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/medicine/medicine_search_screen.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/PatientsInPatientScreen.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/out_patient/out_patient_screen.dart';
|
|
|
|
@ -246,90 +247,44 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
margin: EdgeInsets.only(top: 10),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: 150,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).patients,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
height: .5,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins'),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).services,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins'),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).patients,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontHeight: .5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).services,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
new Container(
|
|
|
|
|
height: 130,
|
|
|
|
|
child: new ListView(
|
|
|
|
|
Container(
|
|
|
|
|
height: 100,
|
|
|
|
|
child: ListView(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: [
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
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: 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),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.inPatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
HomePatientCard(
|
|
|
|
|
backgroundColor: Color(0xffD02127),
|
|
|
|
|
backgroundIconColor: Colors.white12,
|
|
|
|
|
cardIcon: DoctorApp.inpatient,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text:
|
|
|
|
|
TranslationBase.of(context).inPatient,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
@ -339,51 +294,13 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
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: 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),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.myOutPatient,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
HomePatientCard(
|
|
|
|
|
backgroundColor: Colors.grey[300],
|
|
|
|
|
backgroundIconColor: Colors.white38,
|
|
|
|
|
cardIcon: DoctorApp.arrival_patients,
|
|
|
|
|
textColor: Colors.black,
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.myOutPatient,
|
|
|
|
|
onTap: () {
|
|
|
|
|
String date =
|
|
|
|
|
DateUtils.convertDateToFormat(
|
|
|
|
@ -407,106 +324,30 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
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: 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),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.patientsreferral,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
HomePatientCard(
|
|
|
|
|
backgroundColor: Color(0xff2B353E),
|
|
|
|
|
backgroundIconColor: Colors.white10,
|
|
|
|
|
cardIcon: DoctorApp.referral_1,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.patientsreferral,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
PatientReferralScreen(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
|
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: 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),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.searchPatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
HomePatientCard(
|
|
|
|
|
backgroundColor: Color(0xffD02127),
|
|
|
|
|
backgroundIconColor: Colors.white10,
|
|
|
|
|
cardIcon: DoctorApp.search,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.searchPatient,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
@ -516,51 +357,13 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
HomePageCard(
|
|
|
|
|
color: Color(0xffC9C9C9),
|
|
|
|
|
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: 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: Color(0xff2B353E),
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 13,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
HomePatientCard(
|
|
|
|
|
backgroundColor: Color(0xffC9C9C9),
|
|
|
|
|
backgroundIconColor: Colors.black12,
|
|
|
|
|
cardIcon: DoctorApp.search_medicines,
|
|
|
|
|
textColor: Color(0xff2B353E),
|
|
|
|
|
text: TranslationBase.of(context)
|
|
|
|
|
.searchMedicine,
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
@ -569,17 +372,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
MedicineSearchScreen(),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
])),
|
|
|
|
|
Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 8,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
@ -595,5 +389,4 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|