From 848e89659513f6967f81826d2dc6f773610fcc69 Mon Sep 17 00:00:00 2001 From: BombardierBulge Date: Sun, 8 Dec 2024 21:33:11 +0100 Subject: [PATCH] /fix shimmer loading final form --- .../sks-menu/presentation/widgets/sks_menu_tiles.dart | 3 ++- .../presentation/widgets/sks_menu_view_loading.dart | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/features/sks-menu/presentation/widgets/sks_menu_tiles.dart b/lib/features/sks-menu/presentation/widgets/sks_menu_tiles.dart index 73eae17c..b90fd452 100644 --- a/lib/features/sks-menu/presentation/widgets/sks_menu_tiles.dart +++ b/lib/features/sks-menu/presentation/widgets/sks_menu_tiles.dart @@ -101,7 +101,8 @@ class _LoadingTitle extends StatelessWidget { @override Widget build(BuildContext context) { return Padding( - padding: const EdgeInsets.fromLTRB(SksMenuConfig.paddingLarge,0,SksMenuConfig.paddingLarge, SksMenuConfig.paddingMedium), + padding: const EdgeInsets.fromLTRB(SksMenuConfig.paddingLarge, 0, + SksMenuConfig.paddingLarge, SksMenuConfig.paddingMedium), child: Container( decoration: BoxDecoration( color: context.colorTheme.whiteSoap, diff --git a/lib/features/sks-menu/presentation/widgets/sks_menu_view_loading.dart b/lib/features/sks-menu/presentation/widgets/sks_menu_view_loading.dart index 39fa077a..416aef5e 100644 --- a/lib/features/sks-menu/presentation/widgets/sks_menu_view_loading.dart +++ b/lib/features/sks-menu/presentation/widgets/sks_menu_view_loading.dart @@ -23,8 +23,8 @@ class SksMenuViewLoading extends StatelessWidget { SksMenuHeaderLoading(), Expanded( child: _SksMenuTitleLoadingPaddings(), - ) - ,], + ), + ], ), ), ); @@ -38,10 +38,13 @@ class _SksMenuTitleLoadingPaddings extends StatelessWidget { Widget build(BuildContext context) { return ScrollableLoaderBuilder( itemsSpacing: 4, - mainAxisItemSize:14, + mainAxisItemSize: 14, scrollDirection: Axis.vertical, itemBuilder: (BuildContext context, int index) { - return const Padding(padding: EdgeInsets.symmetric(vertical: SksMenuConfig.paddingMedium),child:SksMenuTilesLoading(),); + return const Padding( + padding: EdgeInsets.symmetric(vertical: SksMenuConfig.paddingMedium), + child: SksMenuTilesLoading(), + ); }, ); }