Skip to content

Commit

Permalink
Add match detail bottom padding
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-mayank committed Jul 2, 2024
1 parent f394015 commit d6909a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d6909a7

Please sign in to comment.