From aee83ce930f936e34bdec73b5e4f2c6abc3c18a5 Mon Sep 17 00:00:00 2001 From: Sultan khan <> Date: Wed, 13 Dec 2023 10:17:38 +0300 Subject: [PATCH] spacing added --- lib/screens/doctor_schedule/doctor_schedule.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/screens/doctor_schedule/doctor_schedule.dart b/lib/screens/doctor_schedule/doctor_schedule.dart index 21b1ee21..a06c869b 100644 --- a/lib/screens/doctor_schedule/doctor_schedule.dart +++ b/lib/screens/doctor_schedule/doctor_schedule.dart @@ -125,7 +125,11 @@ class _DoctorSchedulePageState extends State { }); }, itemBuilder: (context, index) { - return Container( + return model.getDoctorRotation[index] + .scheduleforuser.length ==0 ? Center( + child: ErrorMessage( + error: TranslationBase.of(context).noDataAvailable, + )) : Container( child: ListView.builder( itemCount: model.getDoctorRotation[index] .scheduleforuser.length, @@ -302,7 +306,7 @@ class _DoctorSchedulePageState extends State { index3) => Row(children: [ Text(model.getDoctorRotation[index].scheduleforuser[index2].shiftforuser[index3].fromtimetext.toString()), - Text(TranslationBase.of(context).to), + Text(" "+TranslationBase.of(context).to +" "), Text(model.getDoctorRotation[index].scheduleforuser[index2].shiftforuser[index3].totimetext.toString()) ]))) @@ -386,7 +390,7 @@ class _DoctorSchedulePageState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Text(fromDate), + Text(fromDate, style: TextStyle(fontSize: 14),), Icon(Icons.calendar_month_outlined) ]) ], @@ -410,7 +414,7 @@ class _DoctorSchedulePageState extends State { padding: EdgeInsets.only(top: 5, left: 12, right: 12, bottom: 5), width: double.infinity, - height: 55, + height: 56, decoration: BoxDecoration( borderRadius: BorderRadius.circular(12), color: Colors.white, @@ -430,7 +434,7 @@ class _DoctorSchedulePageState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Text(toDate), + Text(toDate, style: TextStyle(fontSize: 14),), Icon(Icons.calendar_month_outlined) ]) ],