|
|
|
|
@ -349,15 +349,49 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
|
isFromHomePage: true,
|
|
|
|
|
),
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h)
|
|
|
|
|
: Swiper(
|
|
|
|
|
itemCount: myAppointmentsVM.isMyAppointmentsLoading
|
|
|
|
|
? 3
|
|
|
|
|
: myAppointmentsVM.patientAppointmentsHistoryList.length < 3
|
|
|
|
|
? myAppointmentsVM.patientAppointmentsHistoryList.length
|
|
|
|
|
: 3,
|
|
|
|
|
layout: SwiperLayout.STACK,
|
|
|
|
|
loop: true,
|
|
|
|
|
itemWidth: MediaQuery.of(context).size.width - 48.h,
|
|
|
|
|
: isTablet
|
|
|
|
|
? SizedBox(
|
|
|
|
|
height: isFoldable ? 290.h : 255.h,
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
itemCount: 3,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.only(left: 16.h, right: 16.h),
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return SizedBox(
|
|
|
|
|
height: 255.h,
|
|
|
|
|
width: 250.w,
|
|
|
|
|
child: getIndexSwiperCard(index),
|
|
|
|
|
);
|
|
|
|
|
// return AnimationConfiguration.staggeredList(
|
|
|
|
|
// position: index,
|
|
|
|
|
// duration: const Duration(milliseconds: 1000),
|
|
|
|
|
// child: SlideAnimation(
|
|
|
|
|
// horizontalOffset: 100.0,
|
|
|
|
|
// child: FadeInAnimation(
|
|
|
|
|
// child: SizedBox(
|
|
|
|
|
// height: 255.h,
|
|
|
|
|
// width: 250.w,
|
|
|
|
|
// child: getIndexSwiperCard(index),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => SizedBox(
|
|
|
|
|
width: 10.w,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Swiper(
|
|
|
|
|
itemCount: myAppointmentsVM.isMyAppointmentsLoading
|
|
|
|
|
? 3
|
|
|
|
|
: myAppointmentsVM.patientAppointmentsHistoryList.length < 3
|
|
|
|
|
? myAppointmentsVM.patientAppointmentsHistoryList.length
|
|
|
|
|
: 3,
|
|
|
|
|
layout: SwiperLayout.STACK,
|
|
|
|
|
loop: true,
|
|
|
|
|
itemWidth: MediaQuery.of(context).size.width - 48.h,
|
|
|
|
|
indicatorLayout: PageIndicatorLayout.COLOR,
|
|
|
|
|
axisDirection: AxisDirection.right,
|
|
|
|
|
controller: _controller,
|
|
|
|
|
|