diff --git a/lib/config/config.dart b/lib/config/config.dart index 2301eab0..9490ceb2 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -458,4 +458,6 @@ class AppGlobal { static Color appRedColor = Color(0xFFD02127); static Color appGreenColor = Color(0xFF359846); static Color appTextColor = Color(0xFF2B353E); + static Color scheduleTextColor = Color(0xFF2E303A); + } diff --git a/lib/widgets/doctor/my_schedule_widget.dart b/lib/widgets/doctor/my_schedule_widget.dart index 9cd22e94..fe129c31 100644 --- a/lib/widgets/doctor/my_schedule_widget.dart +++ b/lib/widgets/doctor/my_schedule_widget.dart @@ -46,7 +46,7 @@ class MyScheduleWidget extends StatelessWidget { fontFamily: 'Poppins', fontWeight: FontWeight.w700, letterSpacing: -0.52, - color: HexColor('#2E303A'), + color: AppGlobal.scheduleTextColor, ), ), Padding( @@ -57,7 +57,7 @@ class MyScheduleWidget extends StatelessWidget { fontWeight: FontWeight.w700, fontFamily: 'Poppins', letterSpacing: -0.72, - color: HexColor('#2E303A'), + color: AppGlobal.scheduleTextColor, ), ), ], @@ -67,6 +67,8 @@ class MyScheduleWidget extends StatelessWidget { width: MediaQuery.of(context).size.width * 0.70, height: MediaQuery.of(context).size.height * 0.18, child: CardWithBgWidget( + padding: 12, + marginLeft: 8, marginSymmetric: 7, hasBorder: false, bgColor: AppDateUtils.isToday(workingHoursTable.date) @@ -105,7 +107,7 @@ class MyScheduleWidget extends StatelessWidget { fontSize: MediaQuery.of(context).size.width*0.04, fontWeight: FontWeight.w700, letterSpacing: -0.64, - color: HexColor('#2E303A'), + color: AppGlobal.scheduleTextColor, ), ), // AppText( @@ -126,7 +128,7 @@ class MyScheduleWidget extends StatelessWidget { fontSize: MediaQuery.of(context).size.width*0.04, fontWeight: FontWeight.w700, letterSpacing: -0.64, - color: HexColor('#2E303A'), + color: AppGlobal.scheduleTextColor, ), ], ), diff --git a/lib/widgets/shared/card_with_bg_widget.dart b/lib/widgets/shared/card_with_bg_widget.dart index a7547ff5..9f45c187 100644 --- a/lib/widgets/shared/card_with_bg_widget.dart +++ b/lib/widgets/shared/card_with_bg_widget.dart @@ -15,8 +15,8 @@ class CardWithBgWidget extends StatelessWidget { {@required this.widget, this.bgColor, this.hasBorder = true, - this.padding = 10.0, - this.marginLeft = 12.0, + this.padding = 15.0, + this.marginLeft = 10.0, this.marginSymmetric = 10.0}); @override