From bb9d1bfcd59e1274298a94ad2ca166645d724d0a Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Wed, 11 Aug 2021 16:54:58 +0300 Subject: [PATCH] improvements --- lib/config/localized_values.dart | 1 - .../data_display/medical/doctor_card.dart | 16 +++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index ce126cc3..a90fb02f 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -137,7 +137,6 @@ const Map localizedValues = { "verify-through": {"en": "Verify Through", "ar": " تحقق من خلال"}, "last-login": {"en": "LAST LOGIN AT:", "ar": "آخر تسجيل دخول"}, "last-login-with": {"en": "VERIFICATION TYPE:", "ar": "نوع التحقق:"}, - "please-verify": {"en": "Please Verify", "ar": "ارجوك تحقق:"}, "verify-fingerprint": { "en": "To activate the fingerprint login service, please verify data by using one of the following options.", "ar": "لتفعيل خدمة الدخول بالبصمة، يرجى اختيار احدى القنوات التالية للتحقق من البيانات" diff --git a/lib/widgets/data_display/medical/doctor_card.dart b/lib/widgets/data_display/medical/doctor_card.dart index a37f8422..092a80f7 100644 --- a/lib/widgets/data_display/medical/doctor_card.dart +++ b/lib/widgets/data_display/medical/doctor_card.dart @@ -28,7 +28,7 @@ class DoctorCard extends StatelessWidget { Widget build(BuildContext context) { ProjectViewModel projectViewModel = Provider.of(context); return Container( - height: 108, + height: 120, decoration: BoxDecoration( borderRadius: BorderRadius.all( Radius.circular(10.0), @@ -48,7 +48,7 @@ class DoctorCard extends StatelessWidget { mainAxisSize: MainAxisSize.min, children: [ Container( - width: 16, // projectViewModel.isArabic ? 27 : 20, + // width: 16, // projectViewModel.isArabic ? 27 : 20, height: double.infinity, alignment: Alignment.center, // height: date == null @@ -56,6 +56,7 @@ class DoctorCard extends StatelessWidget { // ? 185 // : 100 // : 180, + padding: EdgeInsets.only(left: 2,right: 2), decoration: BoxDecoration( //Colors.red[900] Color(0xff404545) color: isLiveCareAppointment @@ -78,7 +79,7 @@ class DoctorCard extends StatelessWidget { : !isInOutPatient ? TranslationBase.of(context).inPatient.toUpperCase() : TranslationBase.of(context).outpatient.toUpperCase(), - style: TextStyle(fontSize: 10, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Colors.white, letterSpacing: -0.4, height: 16 / 10), + style: TextStyle(fontSize: 10, fontFamily: "Poppins", fontWeight: FontWeight.w700, color: Colors.white, letterSpacing: -0.2, height: 16 / 10), ), ), ), @@ -91,6 +92,7 @@ class DoctorCard extends StatelessWidget { children: [ Row( mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded( child: Text( @@ -104,11 +106,11 @@ class DoctorCard extends StatelessWidget { children: [ Text( DateUtil.formatDateToDate(date), - style: TextStyle(fontSize: 12, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), + style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), ), Text( DateUtil.formatDateToTime(date), - style: TextStyle(fontSize: 12, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff575757), letterSpacing: -0.48, height: 18 / 12), + style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff575757), letterSpacing: -0.48, height: 18 / 12), ), ], ) @@ -160,11 +162,11 @@ class DoctorCard extends StatelessWidget { return RichText( text: TextSpan( text: title, - style: TextStyle(fontSize: 10, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.4, height: 18 / 10), + style: TextStyle(fontSize: 12, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff575757), letterSpacing: -0.4, height: 18 / 10), children: [ TextSpan( text: " $value", - style: TextStyle(fontSize: 12, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), + style: TextStyle(fontSize: 14, fontFamily: "Poppins", fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), ) ]), );