Skip to content

Commit

Permalink
fix: player streak bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharlock10 committed Jan 23, 2024
1 parent 7a19e2b commit acc9629
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions lib/screens/player_detail/player_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,18 @@ class PlayerDetail extends HookConsumerWidget {
appBar: AppBar(
actions: [
Center(
child: widgets.RefreshButton(
onRefresh: onRefresh,
color: Colors.white,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 7),
child: widgets.RefreshButton(
onRefresh: onRefresh,
color: Colors.white,
),
),
),
const PlayerDetailMenu(),
const Padding(
padding: EdgeInsets.only(right: 5),
child: PlayerDetailMenu(),
),
],
title: isLoadingPlayerData || player == null
? const Text("Player")
Expand Down Expand Up @@ -199,7 +205,8 @@ class PlayerDetail extends HookConsumerWidget {
: FeatherIcons.arrowUpCircle,
color:
playerStreak.isNegative ? Colors.red : Colors.green,
text: "${playerStreak.abs()} win streak",
text:
"${playerStreak.abs()} ${playerStreak.isNegative ? 'loose' : 'win'} streak",
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.9.0
version: 1.9.1

homepage: "https://paladinsedge.app"

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.9.0
version: 1.9.1

homepage: "https://paladinsedge.app"

Expand Down

0 comments on commit acc9629

Please sign in to comment.