Skip to content

Commit

Permalink
Ensure rating is up to date for custom game creation
Browse files Browse the repository at this point in the history
Fixes #615
  • Loading branch information
veloce committed Apr 11, 2024
1 parent f444744 commit e30fb84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/view/home/home_tab_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ class _CreateAGameSection extends StatelessWidget {
}
}

class _CustomGameButton extends StatelessWidget {
class _CustomGameButton extends ConsumerWidget {
const _CustomGameButton();

@override
Widget build(BuildContext context) {
Widget build(BuildContext context, WidgetRef ref) {
return Padding(
padding: Styles.bodySectionBottomPadding,
child: CardButton(
Expand All @@ -420,6 +420,7 @@ class _CustomGameButton extends StatelessWidget {
],
),
onTap: () {
ref.invalidate(accountProvider);
pushPlatformRoute(
context,
title: context.l10n.custom,
Expand Down

0 comments on commit e30fb84

Please sign in to comment.