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