|
|
|
@ -17,7 +17,6 @@ import 'app_texts_widget.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AppDrawer extends StatefulWidget {
|
|
|
|
|
@override
|
|
|
|
|
_AppDrawerState createState() => _AppDrawerState();
|
|
|
|
@ -37,7 +36,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
child: Drawer(
|
|
|
|
|
child: Column(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 4,
|
|
|
|
|
flex: 7,
|
|
|
|
|
child: ListView(padding: EdgeInsets.zero, children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 15),
|
|
|
|
@ -50,6 +49,8 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
Container(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/dr_app_logo.png',
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.16,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.16,
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 10, bottom: 10),
|
|
|
|
|
),
|
|
|
|
@ -61,6 +62,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.close_1,
|
|
|
|
|
size: 20,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 20, bottom: 10),
|
|
|
|
@ -83,24 +85,29 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 10),
|
|
|
|
|
padding: EdgeInsets.only(top: 8.0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).dr +
|
|
|
|
|
authenticationViewModel.doctorProfile?.doctorName,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
authenticationViewModel
|
|
|
|
|
.doctorProfile?.doctorName,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 17,
|
|
|
|
|
fontSize: 25.0,
|
|
|
|
|
letterSpacing: -1.5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
authenticationViewModel.doctorProfile?.clinicDescription,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
authenticationViewModel
|
|
|
|
|
.doctorProfile?.clinicDescription,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
letterSpacing: -0.96,
|
|
|
|
|
//textAlign: TextAlign.left,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -110,6 +117,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).applyOrRescheduleLeave,
|
|
|
|
|
icon: DoctorApp.reschedule__1,
|
|
|
|
|
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
@ -117,10 +125,11 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => AddRescheduleLeavScreen(),
|
|
|
|
|
settings: RouteSettings(name: 'AddRescheduleLeaveScreen')
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
));
|
|
|
|
|
builder: (context) => AddRescheduleLeavScreen(),
|
|
|
|
|
settings: RouteSettings(
|
|
|
|
|
name: 'AddRescheduleLeaveScreen')
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
@ -131,10 +140,11 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.height * 0.02),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 80,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.16,
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.16,
|
|
|
|
|
child: Image.asset('assets/images/qr_code.png'),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {},
|
|
|
|
@ -143,7 +153,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.09,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.02,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
@ -174,8 +184,8 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
onTap: () async {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
await authenticationViewModel.logout(isFromLogin: false);
|
|
|
|
|
|
|
|
|
|
await authenticationViewModel.logout(
|
|
|
|
|
isFromLogin: false);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
@ -191,38 +201,44 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: FractionalOffset.bottomCenter,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.3,
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
text: 'Powered by',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF989898),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: ' Cloud Solutions',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: projectsProvider.isArabic ? 0 : 15.0,
|
|
|
|
|
right: projectsProvider.isArabic ? 15.0 : 0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.3,
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
text: 'Powered by',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF989898),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
letterSpacing: -0.56,
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: ' Cloud Solutions',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
letterSpacing: -0.56,
|
|
|
|
|
fontWeight: FontWeight.w700),
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Text("Powered by"),
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/cs_logo_container.png',
|
|
|
|
|
width: SizeConfig.imageSizeMultiplier * 20,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
// Text("Powered by"),
|
|
|
|
|
Image.asset('assets/images/cs_logo_container.png',
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context).size.width * 0.13)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
))))
|
|
|
|
|
]))
|
|
|
|
|
])),
|
|
|
|
|