-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from canopas/Mayank/implement-tournament-deta…
…il-stats-tab Implement tournament detail stats tab
- Loading branch information
Showing
11 changed files
with
398 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
khelo/lib/ui/flow/tournament/detail/components/filter_tab_view.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
import 'package:style/extensions/context_extensions.dart'; | ||
import 'package:style/text/app_text_style.dart'; | ||
|
||
import '../../../../../gen/assets.gen.dart'; | ||
|
||
class FilterTabView extends StatelessWidget { | ||
final String title; | ||
final String filterValue; | ||
final VoidCallback onFilter; | ||
|
||
const FilterTabView({ | ||
super.key, | ||
required this.title, | ||
required this.onFilter, | ||
required this.filterValue, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
Text( | ||
title, | ||
style: AppTextStyle.header4.copyWith( | ||
color: context.colorScheme.textPrimary, | ||
), | ||
), | ||
TextButton.icon( | ||
iconAlignment: IconAlignment.end, | ||
onPressed: onFilter, | ||
label: Text( | ||
filterValue, | ||
style: AppTextStyle.body2.copyWith( | ||
color: context.colorScheme.primary, | ||
), | ||
), | ||
icon: SvgPicture.asset( | ||
Assets.images.icArrowDown, | ||
height: 18, | ||
width: 18, | ||
colorFilter: ColorFilter.mode( | ||
context.colorScheme.primary, | ||
BlendMode.srcATop, | ||
), | ||
), | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.