@ -179,7 +179,7 @@ class _LandingPageState extends State<LandingPage> {
) ,
) ,
) ;
) ;
} ) ,
} ) ,
SizedBox ( height: 1 2 .h ) ,
SizedBox ( height: 1 6 .h ) ,
Consumer < MyAppointmentsViewModel > ( builder: ( context , myAppointmentsVM , child ) {
Consumer < MyAppointmentsViewModel > ( builder: ( context , myAppointmentsVM , child ) {
return myAppointmentsVM . isMyAppointmentsLoading
return myAppointmentsVM . isMyAppointmentsLoading
? Container (
? Container (
@ -288,49 +288,46 @@ class _LandingPageState extends State<LandingPage> {
) ,
) ,
) ;
) ;
} ) ,
} ) ,
SizedBox ( height: 1 2 .h ) ,
SizedBox ( height: 1 6 .h ) ,
Container (
Container (
height: 12 7 .h ,
height: 12 0 .h ,
decoration: RoundedRectangleBorder ( ) . toSmoothCornerDecoration (
decoration: RoundedRectangleBorder ( ) . toSmoothCornerDecoration (
color: AppColors . whiteColor ,
color: AppColors . whiteColor ,
borderRadius: 24 ,
borderRadius: 24 ,
) ,
) ,
child: Padding (
child: Column (
padding: EdgeInsets . all ( 16. h ) ,
children: [
child: Column (
Expanded (
children: [
child: ListView . separated (
Expanded (
scrollDirection: Axis . horizontal ,
child: ListView . separated (
itemCount: LandingPageData . getLoggedInServiceCardsList . length ,
scrollDirection: Axis . horizontal ,
shrinkWrap: true ,
itemCount: LandingPageData . getLoggedInServiceCardsList . length ,
padding: EdgeInsets . only ( left: 16. h , right: 16. h ) ,
shrinkWrap: true ,
itemBuilder: ( context , index ) {
padding: const EdgeInsets . only ( left: 0 , right: 8 ) ,
return AnimationConfiguration . staggeredList (
itemBuilder: ( context , index ) {
position: index ,
return AnimationConfiguration . staggeredList (
duration: const Duration ( milliseconds: 1000 ) ,
position: index ,
child: SlideAnimation (
duration: const Duration ( milliseconds: 1000 ) ,
horizontalOffset: 100.0 ,
child: SlideAnimation (
child: FadeInAnimation (
horizontalOffset: 100.0 ,
child: SmallServiceCard (
child: FadeInAnimation (
icon: LandingPageData . getLoggedInServiceCardsList [ index ] . icon ,
child: SmallServiceCard (
title: LandingPageData . getLoggedInServiceCardsList [ index ] . title ,
icon: LandingPageData . getLoggedInServiceCardsList [ index ] . icon ,
subtitle: LandingPageData . getLoggedInServiceCardsList [ index ] . subtitle ,
title: LandingPageData . getLoggedInServiceCardsList [ index ] . title ,
iconColor: LandingPageData . getLoggedInServiceCardsList [ index ] . iconColor ,
subtitle: LandingPageData . getLoggedInServiceCardsList [ index ] . subtitle ,
textColor: LandingPageData . getLoggedInServiceCardsList [ index ] . textColor ,
iconColor: LandingPageData . getLoggedInServiceCardsList [ index ] . iconColor ,
backgroundColor: LandingPageData . getLoggedInServiceCardsList [ index ] . backgroundColor ,
textColor: LandingPageData . getLoggedInServiceCardsList [ index ] . textColor ,
isBold: LandingPageData . getLoggedInServiceCardsList [ index ] . isBold ,
backgroundColor: LandingPageData . getLoggedInServiceCardsList [ index ] . backgroundColor ,
serviceName: LandingPageData . getLoggedInServiceCardsList [ index ] . serviceName ,
isBold: LandingPageData . getLoggedInServiceCardsList [ index ] . isBold ,
serviceName: LandingPageData . getLoggedInServiceCardsList [ index ] . serviceName ,
) ,
) ,
) ,
) ,
) ,
) ;
) ,
},
);
separatorBuilder: ( BuildContext cxt , int index ) = > 0. width ,
} ,
) ,
separatorBuilder: ( BuildContext cxt , int index ) = > 0. width ,
) ,
) ,
] ,
) ,
) ,
] ,
) ,
) ,
) . paddingSymmetrical ( 24. h , 0. h ) ,
) . paddingSymmetrical ( 24. h , 0. h ) ,
] ,
] ,
@ -341,41 +338,38 @@ class _LandingPageState extends State<LandingPage> {
color: AppColors . whiteColor ,
color: AppColors . whiteColor ,
borderRadius: 24 ,
borderRadius: 24 ,
) ,
) ,
child: Padding (
child: Column (
padding: EdgeInsets . all ( 16. h ) ,
children: [
child: Column (
Expanded (
children: [
child: ListView . separated (
Expanded (
scrollDirection: Axis . horizontal ,
child: ListView . separated (
itemCount: LandingPageData . getNotLoggedInServiceCardsList . length ,
scrollDirection: Axis . horizontal ,
shrinkWrap: true ,
itemCount: LandingPageData . getNotLoggedInServiceCardsList . length ,
padding: EdgeInsets . only ( left: 16. h , right: 16. h ) ,
shrinkWrap: true ,
itemBuilder: ( context , index ) {
padding: const EdgeInsets . only ( left: 0 , right: 8 ) ,
return AnimationConfiguration . staggeredList (
itemBuilder: ( context , index ) {
position: index ,
return AnimationConfiguration . staggeredList (
duration: const Duration ( milliseconds: 1000 ) ,
position: index ,
child: SlideAnimation (
duration: const Duration ( milliseconds: 1000 ) ,
horizontalOffset: 100.0 ,
child: SlideAnimation (
child: FadeInAnimation (
horizontalOffset: 100.0 ,
child: SmallServiceCard (
child: FadeInAnimation (
icon: LandingPageData . getNotLoggedInServiceCardsList [ index ] . icon ,
child: SmallServiceCard (
title: LandingPageData . getNotLoggedInServiceCardsList [ index ] . title ,
icon: LandingPageData . getNotLoggedInServiceCardsList [ index ] . icon ,
subtitle: LandingPageData . getNotLoggedInServiceCardsList [ index ] . subtitle ,
title: LandingPageData . getNotLoggedInServiceCardsList [ index ] . title ,
iconColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . iconColor ,
subtitle: LandingPageData . getNotLoggedInServiceCardsList [ index ] . subtitle ,
textColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . textColor ,
iconColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . iconColor ,
backgroundColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . backgroundColor ,
textColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . textColor ,
isBold: LandingPageData . getNotLoggedInServiceCardsList [ index ] . isBold ,
backgroundColor: LandingPageData . getNotLoggedInServiceCardsList [ index ] . backgroundColor ,
isBold: LandingPageData . getNotLoggedInServiceCardsList [ index ] . isBold ,
) ,
) ,
) ,
) ,
) ,
) ;
) ,
},
);
separatorBuilder: ( BuildContext cxt , int index ) = > 0. width ,
} ,
) ,
separatorBuilder: ( BuildContext cxt , int index ) = > 0. width ,
) ,
) ,
] ,
) ,
) ,
] ,
) ,
) ,
) . paddingSymmetrical ( 24. h , 0. h ) ,
) . paddingSymmetrical ( 24. h , 0. h ) ,
Row (
Row (