Edit some issues in the my_schedule_screen

merge-requests/959/head
RoaaGhali98 4 years ago
parent b1a65425c5
commit 47a077bd52

@ -458,4 +458,6 @@ class AppGlobal {
static Color appRedColor = Color(0xFFD02127); static Color appRedColor = Color(0xFFD02127);
static Color appGreenColor = Color(0xFF359846); static Color appGreenColor = Color(0xFF359846);
static Color appTextColor = Color(0xFF2B353E); static Color appTextColor = Color(0xFF2B353E);
static Color scheduleTextColor = Color(0xFF2E303A);
} }

@ -46,7 +46,7 @@ class MyScheduleWidget extends StatelessWidget {
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing: -0.52, letterSpacing: -0.52,
color: HexColor('#2E303A'), color: AppGlobal.scheduleTextColor,
), ),
), ),
Padding( Padding(
@ -57,7 +57,7 @@ class MyScheduleWidget extends StatelessWidget {
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontFamily: 'Poppins', fontFamily: 'Poppins',
letterSpacing: -0.72, 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, width: MediaQuery.of(context).size.width * 0.70,
height: MediaQuery.of(context).size.height * 0.18, height: MediaQuery.of(context).size.height * 0.18,
child: CardWithBgWidget( child: CardWithBgWidget(
padding: 12,
marginLeft: 8,
marginSymmetric: 7, marginSymmetric: 7,
hasBorder: false, hasBorder: false,
bgColor: AppDateUtils.isToday(workingHoursTable.date) bgColor: AppDateUtils.isToday(workingHoursTable.date)
@ -105,7 +107,7 @@ class MyScheduleWidget extends StatelessWidget {
fontSize: MediaQuery.of(context).size.width*0.04, fontSize: MediaQuery.of(context).size.width*0.04,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing: -0.64, letterSpacing: -0.64,
color: HexColor('#2E303A'), color: AppGlobal.scheduleTextColor,
), ),
), ),
// AppText( // AppText(
@ -126,7 +128,7 @@ class MyScheduleWidget extends StatelessWidget {
fontSize: MediaQuery.of(context).size.width*0.04, fontSize: MediaQuery.of(context).size.width*0.04,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing: -0.64, letterSpacing: -0.64,
color: HexColor('#2E303A'), color: AppGlobal.scheduleTextColor,
), ),
], ],
), ),

@ -15,8 +15,8 @@ class CardWithBgWidget extends StatelessWidget {
{@required this.widget, {@required this.widget,
this.bgColor, this.bgColor,
this.hasBorder = true, this.hasBorder = true,
this.padding = 10.0, this.padding = 15.0,
this.marginLeft = 12.0, this.marginLeft = 10.0,
this.marginSymmetric = 10.0}); this.marginSymmetric = 10.0});
@override @override

Loading…
Cancel
Save