mirror of
https://github.com/johrpan/christmas_cats.git
synced 2025-10-28 19:27:25 +01:00
Version 0.1.0
This commit is contained in:
commit
5dda59a6cd
73 changed files with 5741 additions and 0 deletions
37
lib/screens/pause.dart
Normal file
37
lib/screens/pause.dart
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:sprintf/sprintf.dart';
|
||||
|
||||
import '../localizations.dart';
|
||||
import '../widgets/menu.dart';
|
||||
import '../widgets/menu_entry.dart';
|
||||
|
||||
class PauseScreen extends StatelessWidget {
|
||||
final int score;
|
||||
|
||||
PauseScreen({
|
||||
this.score,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localizations = ChristmasCatsLocalizations.of(context);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Color(0xccffffff),
|
||||
body: Menu(
|
||||
title: localizations.paused,
|
||||
subtitle: sprintf(localizations.score, [score]),
|
||||
children: <Widget>[
|
||||
MenuEntry(
|
||||
text: localizations.unpause,
|
||||
onTap: () => Navigator.pop(context, true),
|
||||
),
|
||||
MenuEntry(
|
||||
text: localizations.exit,
|
||||
onTap: () => Navigator.pop(context, false),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue