From c97a66814724101e3aa70cee977d5faa59a53b5b Mon Sep 17 00:00:00 2001 From: BombardierBulge Date: Sun, 8 Dec 2024 14:06:12 +0100 Subject: [PATCH] /fix fix shadows on filter's screen --- lib/features/home_view/home_view.dart | 1 - .../widgets/buildings_section/buildings_section.dart | 5 +++-- lib/features/home_view/widgets/paddings.dart | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/features/home_view/home_view.dart b/lib/features/home_view/home_view.dart index 5c7d651b..d0f1eef7 100644 --- a/lib/features/home_view/home_view.dart +++ b/lib/features/home_view/home_view.dart @@ -46,7 +46,6 @@ class HomeView extends StatelessWidget { padding: EdgeInsets.only( left: horizontalPadding, // Align with the top bar right: safeAreaInsets.right, - bottom: HomeViewConfig.bottomPadding, ), child: KeepAliveHomeViewProviders( child: ListView.separated( diff --git a/lib/features/home_view/widgets/buildings_section/buildings_section.dart b/lib/features/home_view/widgets/buildings_section/buildings_section.dart index 2a1f888a..477146c3 100644 --- a/lib/features/home_view/widgets/buildings_section/buildings_section.dart +++ b/lib/features/home_view/widgets/buildings_section/buildings_section.dart @@ -37,10 +37,11 @@ class _BuildingsList extends ConsumerWidget { return switch (state) { AsyncError(:final error) => MyErrorWidget(error), AsyncValue(:final IList value) => SmallHorizontalPadding( - child: SizedBox( + child: MediumBottomPadding( + child: SizedBox( height: 120, child: _DataListBuildingsTiles(value), - ), + ),), ), _ => const MediumLeftPadding( child: ScrollableSectionLoading(), diff --git a/lib/features/home_view/widgets/paddings.dart b/lib/features/home_view/widgets/paddings.dart index 8acb0a2f..9efca90c 100644 --- a/lib/features/home_view/widgets/paddings.dart +++ b/lib/features/home_view/widgets/paddings.dart @@ -29,3 +29,12 @@ class MediumHorizontalPadding extends Padding { ), ); } + +class MediumBottomPadding extends Padding { + const MediumBottomPadding({super.key, super.child}) + : super( + padding: const EdgeInsets.only( + bottom: HomeViewConfig.paddingMedium, + ), + ); +}