diff --git a/lib/widgets/doctor/my_schedule_widget.dart b/lib/widgets/doctor/my_schedule_widget.dart index fca0e0b4..c1ba098e 100644 --- a/lib/widgets/doctor/my_schedule_widget.dart +++ b/lib/widgets/doctor/my_schedule_widget.dart @@ -21,31 +21,32 @@ class MyScheduleWidget extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.spaceBetween, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - AppText( - workingHoursTable.dayName, - fontSize: 2.5 * SizeConfig.textMultiplier, - fontFamily: 'Poppins', - // fontSize: 18 - ), - SizedBox( - height: 10, - ), - AppText( - ' ${workingHoursTable.date.day} ${(DateUtils.getMonth(workingHoursTable.date.month).toString().substring(0, 3))}', - fontSize: 2.5 * SizeConfig.textMultiplier, - fontWeight: FontWeight.w700, - - fontFamily: 'Poppins', - // fontSize: 18 - ), - ], + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + height: 10, + ), + AppText( + workingHoursTable.dayName, + fontSize: 2.5 * SizeConfig.textMultiplier, + fontFamily: 'Poppins', + // fontSize: 18 + ), + SizedBox( + height: 10, + ), + AppText( + ' ${workingHoursTable.date.day} ${(DateUtils.getMonth(workingHoursTable.date.month).toString().substring(0, 3))}', + fontSize: 2.5 * SizeConfig.textMultiplier, + fontWeight: FontWeight.w700, + fontFamily: 'Poppins', + // fontSize: 18 + ), + ], + ), ), Container( width: MediaQuery.of(context).size.width * 0.55, @@ -80,15 +81,10 @@ class MyScheduleWidget extends StatelessWidget { ), Container( width: MediaQuery.of(context).size.width*0.55, - child: Expanded( - child: Padding( - padding: const EdgeInsets.all(8.0), - child: AppText( - work.from + ' - ' + work.to, - fontSize: 15, - fontWeight: FontWeight.w300, - ), - ), + child: AppText( + '${work.from} - ${work.to}', + fontSize: 15, + fontWeight: FontWeight.w300, ), ) ],