Skip to content

Commit

Permalink
Mr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-mayank committed Jan 9, 2025
1 parent 9cc6536 commit 4c8b4a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
26 changes: 8 additions & 18 deletions khelo/lib/ui/flow/tournament/detail/tournament_detail_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,10 @@ class _TournamentDetailScreenState
Widget _backButton(BuildContext context) {
return actionButton(context,
onPressed: context.pop,
icon: Container(
height: 28,
width: 28,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: context.colorScheme.containerHighOnSurface
.withValues(alpha: 0.4),
),
alignment: Alignment.center,
icon: CircleAvatar(
radius: 16,
backgroundColor:
context.colorScheme.containerHighOnSurface.withValues(alpha: 0.4),
child: Icon(
Platform.isIOS ? Icons.arrow_back_ios_new : Icons.arrow_back,
size: 20,
Expand All @@ -268,15 +263,10 @@ class _TournamentDetailScreenState
return actionButton(
context,
onPressed: onShareTap,
icon: Container(
height: 28,
width: 28,
decoration: BoxDecoration(
shape: BoxShape.circle,
color:
context.colorScheme.containerHighOnSurface.withValues(alpha: 0.4),
),
alignment: Alignment.center,
icon: CircleAvatar(
radius: 16,
backgroundColor:
context.colorScheme.containerHighOnSurface.withValues(alpha: 0.4),
child: Icon(
Platform.isIOS ? Icons.share : Icons.share_outlined,
size: 20,
Expand Down
10 changes: 3 additions & 7 deletions style/lib/button/more_option_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ Widget moreOptionButton(
}) {
return actionButton(context,
onPressed: onPressed,
icon: Container(
height: 28,
width: 28,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: backgroundColor ?? Colors.transparent,
),
icon: CircleAvatar(
radius: 16,
backgroundColor: backgroundColor ?? Colors.transparent,
child: Icon(
Platform.isIOS ? Icons.more_horiz_rounded : Icons.more_vert_rounded,
size: size,
Expand Down

0 comments on commit 4c8b4a3

Please sign in to comment.