Edit the my_schedule_screen design

merge-requests/959/head
RoaaGhali98 4 years ago
parent 9f77d080c0
commit b1a65425c5

@ -22,7 +22,7 @@ class MyScheduleScreen extends StatelessWidget {
) )
: Container( : Container(
color: HexColor("#EFEFEF"), color: HexColor("#EFEFEF"),
padding: EdgeInsetsDirectional.fromSTEB(21, 0, 21, 0), padding: EdgeInsetsDirectional.fromSTEB(0, 0, 21, 0),
child: ListView( child: ListView(
children: <Widget>[ children: <Widget>[
Column( Column(

@ -25,7 +25,6 @@ class MyScheduleWidget extends StatelessWidget {
return Container( return Container(
color: HexColor("#EFEFEF"), color: HexColor("#EFEFEF"),
child: Row( child: Row(
//mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Expanded( Expanded(
@ -36,40 +35,43 @@ class MyScheduleWidget extends StatelessWidget {
SizedBox( SizedBox(
height: 10, height: 10,
), ),
AppText( Padding(
projectViewModel.isArabic padding: const EdgeInsets.only(left: 21),
? AppDateUtils.getWeekDayArabic( child: AppText(
workingHoursTable.date.weekday) projectViewModel.isArabic
: AppDateUtils.getWeekDay(workingHoursTable.date.weekday), ? AppDateUtils.getWeekDayArabic(
//fontSize: MediaQuery.of(context).size.width*0.032, workingHoursTable.date.weekday)
fontSize: 13, : AppDateUtils.getWeekDay(workingHoursTable.date.weekday),
fontFamily: 'Poppins', fontSize: MediaQuery.of(context).size.width*0.032,
fontWeight: FontWeight.w700, fontFamily: 'Poppins',
letterSpacing: -0.52, fontWeight: FontWeight.w700,
letterSpacing: -0.52,
color: HexColor('#2E303A'),
),
), ),
AppText( Padding(
' ${workingHoursTable.date.day} ${(AppDateUtils.getMonth(workingHoursTable.date.month).toString().substring(0, 3))}', padding: const EdgeInsets.only(left: 19),
//fontSize: MediaQuery.of(context).size.width*0.05, child: AppText(
fontSize: 18, ' ${workingHoursTable.date.day} ${(AppDateUtils.getMonth(workingHoursTable.date.month).toString().substring(0, 3))}',
fontWeight: FontWeight.w700, fontSize: MediaQuery.of(context).size.width*0.051,
fontFamily: 'Poppins', fontWeight: FontWeight.w700,
letterSpacing: -0.72, fontFamily: 'Poppins',
letterSpacing: -0.72,
color: HexColor('#2E303A'),
),
), ),
], ],
), ),
), ),
Container( Container(
//width: MediaQuery.of(context).size.width * 0.65, width: MediaQuery.of(context).size.width * 0.70,
width: 257, height: MediaQuery.of(context).size.height * 0.18,
height: 108,
//height: MediaQuery.of(context).size.height * 0.20,
child: CardWithBgWidget( child: CardWithBgWidget(
marginSymmetric: 7, marginSymmetric: 7,
hasBorder: false, hasBorder: false,
bgColor: AppDateUtils.isToday(workingHoursTable.date) bgColor: AppDateUtils.isToday(workingHoursTable.date)
? AppGlobal.appGreenColor ? AppGlobal.appGreenColor
: Colors.transparent, : Colors.transparent,
// hasBorder: false,
widget: Container( widget: Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -77,10 +79,9 @@ class MyScheduleWidget extends StatelessWidget {
if (AppDateUtils.isToday(workingHoursTable.date)) if (AppDateUtils.isToday(workingHoursTable.date))
AppText( AppText(
"Today", "Today",
fontSize: 1.8 * SizeConfig.textMultiplier, fontSize: 1.5 * SizeConfig.textMultiplier,
fontFamily: 'Poppins', fontFamily: 'Poppins',
color: AppGlobal.appGreenColor, color: AppGlobal.appGreenColor,
// fontSize: 18
), ),
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -102,25 +103,30 @@ class MyScheduleWidget extends StatelessWidget {
.convertToTitleCase( .convertToTitleCase(
workingHoursTable.clinicName ?? ""), workingHoursTable.clinicName ?? ""),
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,
color: HexColor('#2E303A'),
),
), ),
// AppText( // AppText(
// workingHoursTable.clinicName ?? "",
// fontSize: 15,
// fontWeight: FontWeight.w700,
// ),
Container( Container(
child: AppText( child: AppText(
'${work.from} - ${work.to}', '${work.from} - ${work.to}',
fontSize: MediaQuery.of(context).size.width*0.03, fontSize: MediaQuery.of(context).size.width*0.03,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
letterSpacing: -0.4,
), ),
), ),
SizedBox(
height: 12,
),
if (workingHoursTable.projectName != null) if (workingHoursTable.projectName != null)
AppText( AppText(
workingHoursTable.projectName ?? "", workingHoursTable.projectName ?? "",
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,
color: HexColor('#2E303A'),
), ),
], ],
), ),

@ -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 = 15.0, this.padding = 10.0,
this.marginLeft = 10.0, this.marginLeft = 12.0,
this.marginSymmetric = 10.0}); this.marginSymmetric = 10.0});
@override @override

Loading…
Cancel
Save