add my code to sideMnue

merge-requests/455/head
Elham Rababah 4 years ago
parent a768dd63cf
commit b8b3ae5c7f

@ -46,7 +46,7 @@ class _AppDrawerState extends State<AppDrawer> {
child: ListView(padding: EdgeInsets.zero, children: <Widget>[ child: ListView(padding: EdgeInsets.zero, children: <Widget>[
Container( Container(
margin: EdgeInsets.symmetric(horizontal: 20), margin: EdgeInsets.symmetric(horizontal: 20),
height: SizeConfig.heightMultiplier * 50, // height: SizeConfig.heightMultiplier * 50,
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -54,9 +54,9 @@ class _AppDrawerState extends State<AppDrawer> {
child: Image.asset( child: Image.asset(
'assets/images/dr_app_logo.png', 'assets/images/dr_app_logo.png',
), ),
margin: EdgeInsets.only(top: 10, bottom: 15), margin: EdgeInsets.only(top: 10, bottom: 10),
), ),
SizedBox(height: 15), SizedBox(height: 10),
if (authProvider.doctorProfile != null) if (authProvider.doctorProfile != null)
InkWell( InkWell(
onTap: () { onTap: () {
@ -91,7 +91,7 @@ class _AppDrawerState extends State<AppDrawer> {
], ],
), ),
), ),
SizedBox(height: 15), SizedBox(height: 10),
InkWell( InkWell(
child: DrawerItem( child: DrawerItem(
TranslationBase.of(context).rescheduleLeaves, TranslationBase.of(context).rescheduleLeaves,
@ -111,6 +111,29 @@ class _AppDrawerState extends State<AppDrawer> {
)); ));
}, },
), ),
SizedBox(height: 10),
InkWell(
child: DrawerItem(
'My QR Code',
// " or " +
// TranslationBase.of(context).leaves,
DoctorApp.qr_code_3,
// subTitle: ,
),
),
InkWell(
child: Container(
height: 80,
child: Image.asset('assets/images/qr_code.png'),
),
onTap: () {
},
),
], ],
), ),
), ),
@ -121,6 +144,8 @@ class _AppDrawerState extends State<AppDrawer> {
margin: EdgeInsets.symmetric(horizontal: 20), margin: EdgeInsets.symmetric(horizontal: 20),
child: Column( child: Column(
children: [ children: [
InkWell( InkWell(
child: DrawerItem( child: DrawerItem(
projectsProvider.isArabic projectsProvider.isArabic

Loading…
Cancel
Save