From da370fc60acd65eb36161c9440a550065c79bae2 Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Sun, 4 Apr 2021 20:10:03 +0300 Subject: [PATCH] change the font size in patient card, fix the Drawer issue and change the app name in android --- android/app/src/main/AndroidManifest.xml | 2 +- lib/screens/dashboard_screen.dart | 2 +- ..._header_with_appointment_card_app_bar.dart | 22 ++++++------- lib/widgets/shared/doctor_card.dart | 8 +++++ lib/widgets/shared/drawer_item_widget.dart | 32 +++++++++---------- 5 files changed, 37 insertions(+), 29 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 7928e74f..fdd8f424 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -15,7 +15,7 @@ android:name="io.flutter.app.FlutterApplication" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" - android:label="doctor_app_flutter"> + android:label="Doctors app"> Size(double.maxFinite,280); + Size get preferredSize => Size(double.maxFinite,290); } diff --git a/lib/widgets/shared/doctor_card.dart b/lib/widgets/shared/doctor_card.dart index 9cb1ab21..9ba055fc 100644 --- a/lib/widgets/shared/doctor_card.dart +++ b/lib/widgets/shared/doctor_card.dart @@ -105,9 +105,11 @@ class DoctorCard extends StatelessWidget { Texts( 'order No:', color: Colors.grey[500], + fontSize: 14, ), Texts( orderNo ?? '', + fontSize: 14, ) ], ), @@ -116,10 +118,12 @@ class DoctorCard extends StatelessWidget { children: [ Texts( 'Invoice:', + fontSize: 14, color: Colors.grey[500], ), Texts( invoiceNO, + fontSize: 14, ) ], ), @@ -129,9 +133,11 @@ class DoctorCard extends StatelessWidget { Texts( 'Clinic: ', color: Colors.grey[500], + fontSize: 14, ), Texts( clinic, + fontSize: 14, ) ], ), @@ -140,10 +146,12 @@ class DoctorCard extends StatelessWidget { children: [ Texts( 'Branch: ', + fontSize: 14, color: Colors.grey[500], ), Texts( branch, + fontSize: 14, ) ], ) diff --git a/lib/widgets/shared/drawer_item_widget.dart b/lib/widgets/shared/drawer_item_widget.dart index fefea780..248123a6 100644 --- a/lib/widgets/shared/drawer_item_widget.dart +++ b/lib/widgets/shared/drawer_item_widget.dart @@ -35,13 +35,13 @@ class _DrawerItemState extends State { color: widget.color ?? Colors.black87, size: SizeConfig.imageSizeMultiplier * 5, ), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Container( - width: MediaQuery.of(context).size.width *0.45, - child: Expanded( + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Container( + width: MediaQuery.of(context).size.width *0.45, child: AppText( widget.title, marginLeft: 5, @@ -52,15 +52,15 @@ class _DrawerItemState extends State { fontWeight: FontWeight.bold, ), ), - ), - AppText( - widget.subTitle, - visibility: !widget.subTitle.isNullOrEmpty(), - color: widget.color ?? Colors.black, - marginLeft: 5, - fontSize: SizeConfig.textMultiplier * 2.5, - ), - ], + AppText( + widget.subTitle, + visibility: !widget.subTitle.isNullOrEmpty(), + color: widget.color ?? Colors.black, + marginLeft: 5, + fontSize: SizeConfig.textMultiplier * 2.5, + ), + ], + ), ), ], ));