From d6909a71f1e30a42939c0a11ce4d0b4d10d2d6c3 Mon Sep 17 00:00:00 2001 From: cp-mayank-v Date: Tue, 2 Jul 2024 14:30:08 +0530 Subject: [PATCH] Add match detail bottom padding --- .../match_detail/components/match_detail_commentary_view.dart | 3 ++- .../match_detail/components/match_detail_highlight_view.dart | 1 + .../match_detail/components/match_detail_overs_view.dart | 2 +- .../match_detail/components/match_detail_scorecard_view.dart | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_commentary_view.dart b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_commentary_view.dart index 91c36f7d..2f3915b7 100644 --- a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_commentary_view.dart +++ b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_commentary_view.dart @@ -41,7 +41,8 @@ class MatchDetailCommentaryView extends ConsumerWidget { return (state.overList.isNotEmpty) ? ListView( - padding: context.mediaQueryPadding, + padding: + context.mediaQueryPadding + const EdgeInsets.only(bottom: 24), children: _buildCommentaryList(context, state), ) : EmptyScreen( diff --git a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_highlight_view.dart b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_highlight_view.dart index d879940d..bf0d96bd 100644 --- a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_highlight_view.dart +++ b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_highlight_view.dart @@ -133,6 +133,7 @@ class MatchDetailHighlightView extends ConsumerWidget { ); } else { return ListView.separated( + padding: const EdgeInsets.only(bottom: 24), itemCount: highlight.length, separatorBuilder: (context, index) => Divider(color: context.colorScheme.outline, height: 32), diff --git a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_overs_view.dart b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_overs_view.dart index e9506546..7880c6ad 100644 --- a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_overs_view.dart +++ b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_overs_view.dart @@ -38,7 +38,7 @@ class MatchDetailOversView extends ConsumerWidget { return (state.overList.isNotEmpty) ? ListView( - padding: context.mediaQueryPadding, + padding: context.mediaQueryPadding+const EdgeInsets.only(bottom: 24), children: [ const Padding( padding: EdgeInsets.symmetric(horizontal: 16.0), diff --git a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_scorecard_view.dart b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_scorecard_view.dart index e2a94f15..9f113b11 100644 --- a/khelo/lib/ui/flow/matches/match_detail/components/match_detail_scorecard_view.dart +++ b/khelo/lib/ui/flow/matches/match_detail/components/match_detail_scorecard_view.dart @@ -61,8 +61,8 @@ class MatchDetailScorecardView extends ConsumerWidget { Expanded( child: ListView.separated( padding: context.mediaQueryPadding + - EdgeInsets.symmetric( - vertical: state.match?.matchResult == null ? 16 : 0), + EdgeInsets.only( + top: state.match?.matchResult == null ? 16 : 0, bottom: 16), itemCount: groupOversByInning(state.overList).length, itemBuilder: (context, index) { final inningOvers = groupOversByInning(state.overList)[index];