From 1d03c1ff1cac58a277454086e57aabc515ac048c Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 26 Apr 2026 16:04:32 +0300 Subject: [PATCH] updates --- .../appointments/widgets/appointment_card.dart | 9 ++++++--- lib/presentation/home/landing_page.dart | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/presentation/appointments/widgets/appointment_card.dart b/lib/presentation/appointments/widgets/appointment_card.dart index aec94e10..31a030d9 100644 --- a/lib/presentation/appointments/widgets/appointment_card.dart +++ b/lib/presentation/appointments/widgets/appointment_card.dart @@ -256,10 +256,13 @@ class _AppointmentCardState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( + crossAxisAlignment: CrossAxisAlignment.start, children: [ (widget.isLoading ? 'Dr' : "${widget.patientAppointmentHistoryResponseModel.doctorTitle}").toText16(isBold: true, maxlines: 1), - (widget.isLoading ? 'John Doe' : " ${widget.patientAppointmentHistoryResponseModel.doctorNameObj!.truncate(20)}") - .toText16(isBold: true, maxlines: 1, isEnglishOnly: !Utils.isArabicText(widget.patientAppointmentHistoryResponseModel.doctorNameObj ?? "John Doe")), + Expanded( + child: (widget.isLoading ? 'John Doe' : " ${widget.patientAppointmentHistoryResponseModel.doctorNameObj!.truncate(20)}") + .toText16(isBold: true, maxlines: 2, isEnglishOnly: !Utils.isArabicText(widget.patientAppointmentHistoryResponseModel.doctorNameObj ?? "John Doe")), + ), SizedBox(width: 12.w), (widget.patientAppointmentHistoryResponseModel.doctorNationalityFlagURL != null && widget.patientAppointmentHistoryResponseModel.doctorNationalityFlagURL!.isNotEmpty) ? Image.network( @@ -275,7 +278,7 @@ class _AppointmentCardState extends State { Wrap( direction: Axis.horizontal, spacing: 6.h, - runSpacing: 4.h, + runSpacing: 6.h, children: [ AppCustomChipWidget( labelText: widget.isLoading diff --git a/lib/presentation/home/landing_page.dart b/lib/presentation/home/landing_page.dart index 2beaa344..32f9d1df 100644 --- a/lib/presentation/home/landing_page.dart +++ b/lib/presentation/home/landing_page.dart @@ -459,7 +459,7 @@ class _LandingPageState extends State { padding: EdgeInsets.only(left: 16.h, right: 16.h), itemBuilder: (context, index) { return SizedBox( - height: 255.h, + height: isFoldable ? 290.h : 255.h, width: 250.w, child: getIndexSwiperCard(index), );