mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
695 B
24 lines
695 B
import 'package:flame/components.dart';
|
|
import 'package:pinball/l10n/l10n.dart';
|
|
import 'package:pinball_components/pinball_components.dart';
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
/// {@template leaderboard_failure_display}
|
|
/// Display showing an error message when the leaderboard couldn't be loaded
|
|
/// {@endtemplate}
|
|
class LeaderboardFailureDisplay extends Component {
|
|
/// {@macro leaderboard_failure_display}
|
|
LeaderboardFailureDisplay();
|
|
|
|
@override
|
|
Future<void> onLoad() async {
|
|
final l10n = readProvider<AppLocalizations>();
|
|
await add(
|
|
ErrorComponent(
|
|
label: l10n.leaderboardErrorMessage,
|
|
position: Vector2(0, -18),
|
|
),
|
|
);
|
|
}
|
|
}
|