diff --git a/lib/providers/players.dart b/lib/providers/players.dart index 83cd6c9..ca1fc91 100644 --- a/lib/providers/players.dart +++ b/lib/providers/players.dart @@ -148,7 +148,7 @@ class _PlayersNotifier extends ChangeNotifier { playerStreak = utilities.getPlayerStreak(combinedMatches!, playerId); timedStats = utilities.getPlayerTimedStats( combinedMatches!, - data_classes.TimedStatsType.days1, + data_classes.TimedStatsType.days30, playerId, ); } diff --git a/lib/screens/home/home_player_timed_stats.dart b/lib/screens/home/home_player_timed_stats.dart index 23a7178..68c52e4 100644 --- a/lib/screens/home/home_player_timed_stats.dart +++ b/lib/screens/home/home_player_timed_stats.dart @@ -19,8 +19,9 @@ class HomePlayerTimedStats extends HookConsumerWidget { final playerNotifier = providers.players(playerId); final playerProvider = ref.read(playerNotifier); final timedStats = ref.watch(playerNotifier.select((_) => _.timedStats)); - final isPlayerMatchesLoading = - ref.watch(playerNotifier.select((_) => _.isPlayerMatchesLoading)); + final isPlayerMatchesLoading = ref.watch( + playerNotifier.select((_) => _.isPlayerMatchesLoading), + ); // Effects useEffect( diff --git a/lib/screens/player_detail/player_detail_header_expandable_panel.dart b/lib/screens/player_detail/player_detail_header_expandable_panel.dart index 45599b4..575df5a 100644 --- a/lib/screens/player_detail/player_detail_header_expandable_panel.dart +++ b/lib/screens/player_detail/player_detail_header_expandable_panel.dart @@ -9,6 +9,7 @@ import "package:paladinsedge/data_classes/match/index.dart"; import "package:paladinsedge/models/index.dart" as models; import "package:paladinsedge/providers/index.dart" as providers; import "package:paladinsedge/screens/index.dart" as screens; +import "package:paladinsedge/theme/index.dart" as theme; import "package:paladinsedge/utilities/index.dart" as utilities; import "package:paladinsedge/widgets/index.dart" as widgets; @@ -235,7 +236,8 @@ class _RecentPartyMemberCard extends HookWidget { width: itemWidth, child: DecoratedBox( decoration: BoxDecoration( - color: Colors.white.withOpacity(isLightTheme ? 0.75 : 0.25), + color: theme.playerStatsCardColor + .withOpacity(isLightTheme ? 0.75 : 0.25), borderRadius: const BorderRadius.all(Radius.circular(12)), ), child: Padding( @@ -343,7 +345,8 @@ class _RecentlyPlayedChampionCard extends HookWidget { width: itemWidth, child: DecoratedBox( decoration: BoxDecoration( - color: Colors.white.withOpacity(isLightTheme ? 0.75 : 0.25), + color: theme.playerStatsCardColor + .withOpacity(isLightTheme ? 0.75 : 0.25), borderRadius: const BorderRadius.all(Radius.circular(12)), ), child: Padding( diff --git a/lib/theme/colors.dart b/lib/theme/colors.dart index 390a422..6c341db 100644 --- a/lib/theme/colors.dart +++ b/lib/theme/colors.dart @@ -31,3 +31,5 @@ const darkThemeMaterialColor = MaterialColor(0xFF04161c, _darkColorValues); const subtleLightThemeColor = Color.fromRGBO(65, 189, 232, 1); const subtleDarkThemeColor = Color.fromRGBO(100, 120, 130, 1); + +const playerStatsCardColor = Color(0xfff0f0f3); diff --git a/lib/widgets/player_stats_card.dart b/lib/widgets/player_stats_card.dart index 06e716c..bb5144f 100644 --- a/lib/widgets/player_stats_card.dart +++ b/lib/widgets/player_stats_card.dart @@ -1,4 +1,5 @@ import "package:flutter/material.dart"; +import "package:paladinsedge/theme/index.dart" as theme; import "package:paladinsedge/utilities/index.dart" as utilities; class PlayerStatsCard extends StatelessWidget { @@ -34,7 +35,8 @@ class PlayerStatsCard extends StatelessWidget { width: itemWidth, child: DecoratedBox( decoration: BoxDecoration( - color: Colors.white.withOpacity(isLightTheme ? 0.75 : 0.25), + color: + theme.playerStatsCardColor.withOpacity(isLightTheme ? 0.5 : 0.25), borderRadius: const BorderRadius.all(Radius.circular(10)), ), child: Column(