|
|
|
|
@ -113,7 +113,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).applyOrRescheduleLeave,
|
|
|
|
|
DoctorApp.reschedule__1,
|
|
|
|
|
icon: DoctorApp.reschedule__1,
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
@ -129,8 +129,10 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).myQRCode,
|
|
|
|
|
DoctorApp.qr_code_3,
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.myQRCode,
|
|
|
|
|
icon: DoctorApp.qr_code_3,
|
|
|
|
|
// subTitle: ,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -149,7 +151,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 130,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.09,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
@ -157,10 +159,17 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
projectsProvider.isArabic
|
|
|
|
|
? TranslationBase.of(context).lanEnglish
|
|
|
|
|
: TranslationBase.of(context).lanArabic,
|
|
|
|
|
DoctorApp.qr_code),
|
|
|
|
|
projectsProvider.isArabic
|
|
|
|
|
? TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.lanEnglish
|
|
|
|
|
: TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.lanArabic,
|
|
|
|
|
// icon: DoctorApp.qr_code,
|
|
|
|
|
assetLink: projectsProvider.isArabic
|
|
|
|
|
? 'assets/images/usa-flag.png'
|
|
|
|
|
: 'assets/images/saudi-arabia-flag.png',),
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (projectsProvider.isArabic)
|
|
|
|
|
projectsProvider.changeLanguage('en');
|
|
|
|
|
@ -171,7 +180,9 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).logout, DoctorApp.logout_1),
|
|
|
|
|
TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.logout, icon: DoctorApp.logout_1,),
|
|
|
|
|
onTap: () async {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
await helpers.logout();
|
|
|
|
|
|