Skip to content

Commit

Permalink
Use the new flag asset
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Dec 17, 2024
1 parent c264d98 commit 5ad9246
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/src/view/broadcast/broadcast_player_results_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ import 'package:dartchess/dartchess.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart';
import 'package:lichess_mobile/src/model/broadcast/broadcast.dart';
import 'package:lichess_mobile/src/model/broadcast/broadcast_federation.dart';
import 'package:lichess_mobile/src/model/broadcast/broadcast_providers.dart';
import 'package:lichess_mobile/src/model/common/id.dart';
import 'package:lichess_mobile/src/network/http.dart';
import 'package:lichess_mobile/src/styles/styles.dart';
import 'package:lichess_mobile/src/utils/l10n_context.dart';
import 'package:lichess_mobile/src/utils/lichess_assets.dart';
import 'package:lichess_mobile/src/utils/navigation.dart';
import 'package:lichess_mobile/src/view/broadcast/broadcast_game_screen.dart';
import 'package:lichess_mobile/src/view/broadcast/broadcast_player_widget.dart';
Expand Down Expand Up @@ -129,10 +126,9 @@ class _Body extends ConsumerWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.network(
lichessFideFedSrc(player.federation!),
Image.asset(
'assets/images/fide-fed/${player.federation}.png',
height: 12,
httpClient: ref.read(defaultClientProvider),
),
const SizedBox(width: 5),
Flexible(
Expand Down

0 comments on commit 5ad9246

Please sign in to comment.