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
555 B
24 lines
555 B
import 'package:flutter/material.dart';
|
|
import 'package:pinball/game/game.dart';
|
|
|
|
/// {@template game_over_dialog}
|
|
/// [Dialog] displayed when the [PinballGame] is over.
|
|
/// {@endtemplate}
|
|
class GameOverDialog extends StatelessWidget {
|
|
/// {@macro game_over_dialog}
|
|
const GameOverDialog({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Dialog(
|
|
child: SizedBox(
|
|
width: 200,
|
|
height: 200,
|
|
child: Center(
|
|
child: Text('Game Over'),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|