Skip to content

Commit

Permalink
/fix fix shadows on filter's screen
Browse files Browse the repository at this point in the history
  • Loading branch information
BombardierBulge committed Dec 8, 2024
1 parent bab3929 commit 3a67605
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/features/home_view/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ class _BuildingsList extends ConsumerWidget {
return switch (state) {
AsyncError(:final error) => MyErrorWidget(error),
AsyncValue(:final IList<BuildingModel> value) => SmallHorizontalPadding(
child: SizedBox(
height: 120,
child: _DataListBuildingsTiles(value),
child: MediumBottomPadding(
child: SizedBox(
height: 120,
child: _DataListBuildingsTiles(value),
),
),
),
_ => const MediumLeftPadding(
Expand Down
9 changes: 9 additions & 0 deletions lib/features/home_view/widgets/paddings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
}

0 comments on commit 3a67605

Please sign in to comment.