|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/auth_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/reschedule-leaves/add-rescheduleleave.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -73,8 +74,9 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.of(context).pushNamed(PROFILE, arguments: {
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(PROFILE, arguments: {
|
|
|
|
|
'title': authProvider.doctorProfile.doctorName,
|
|
|
|
|
"doctorProfileall": authProvider.doctorProfile
|
|
|
|
|
});
|
|
|
|
|
@ -87,8 +89,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
SizeConfig.imageSizeMultiplier * 12,
|
|
|
|
|
// radius: (52)
|
|
|
|
|
child: ClipRRect(
|
|
|
|
|
borderRadius:BorderRadius.circular(50),
|
|
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
authProvider
|
|
|
|
|
.doctorProfile.doctorImageURL,
|
|
|
|
|
@ -103,7 +104,9 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
? Padding(
|
|
|
|
|
padding: EdgeInsets.only(top: 10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).dr +authProvider.doctorProfile?.doctorName,
|
|
|
|
|
TranslationBase.of(context).dr +
|
|
|
|
|
authProvider
|
|
|
|
|
.doctorProfile?.doctorName,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2,
|
|
|
|
|
@ -138,6 +141,20 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
Navigator.of(context).pushNamed(SETTINGS);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(TranslationBase.of(context).rescheduleLeaves,
|
|
|
|
|
DoctorApp.leaves),
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => AddRescheduleLeavScreen(),
|
|
|
|
|
// MyReferredPatient(),
|
|
|
|
|
));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
child: DrawerItem(
|
|
|
|
|
TranslationBase.of(context).qr +
|
|
|
|
|
|