|
|
|
|
@ -45,18 +45,36 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
flex: 4,
|
|
|
|
|
child: ListView(padding: EdgeInsets.zero, children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 15),
|
|
|
|
|
// height: SizeConfig.heightMultiplier * 50,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/dr_app_logo.png',
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 10, bottom: 10),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/dr_app_logo.png',
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 10, bottom: 10),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.close_1,
|
|
|
|
|
size: 20,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 20, bottom: 10),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
|
if (authProvider.doctorProfile != null)
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
@ -80,7 +98,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
|
padding: EdgeInsets.only(top: 0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
authProvider.doctorProfile?.clinicDescription,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
@ -91,13 +109,10 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
SizedBox(height: 40),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).rescheduleLeaves,
|
|
|
|
|
// " or " +
|
|
|
|
|
// TranslationBase.of(context).leaves,
|
|
|
|
|
|
|
|
|
|
TranslationBase.of(context).applyOrRescheduleLeave,
|
|
|
|
|
DoctorApp.reschedule__1,
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
@ -111,19 +126,15 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
'My QR Code',
|
|
|
|
|
// " or " +
|
|
|
|
|
// TranslationBase.of(context).leaves,
|
|
|
|
|
|
|
|
|
|
TranslationBase.of(context).myQRCode,
|
|
|
|
|
DoctorApp.qr_code_3,
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 80,
|
|
|
|
|
@ -138,14 +149,12 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 40,
|
|
|
|
|
height: 130,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
projectsProvider.isArabic
|
|
|
|
|
@ -159,6 +168,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
projectsProvider.changeLanguage('ar');
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).logout, DoctorApp.logout_1),
|
|
|
|
|
@ -193,13 +203,13 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF989898),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontFamily: 'Poppins',),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
TextSpan(text: ' Cloud Solutions',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2,
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
fontFamily: 'Poppins',),
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
|