2020-01-15 19:04:40 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:sprintf/sprintf.dart';
|
|
|
|
|
|
|
|
|
|
import '../localizations.dart';
|
2020-01-25 20:16:19 +01:00
|
|
|
import '../widgets/get_coins.dart';
|
2020-01-15 19:04:40 +01:00
|
|
|
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(
|
2020-01-25 20:16:19 +01:00
|
|
|
resizeToAvoidBottomInset: false,
|
2020-01-15 19:04:40 +01:00
|
|
|
backgroundColor: Color(0xccffffff),
|
|
|
|
|
body: Menu(
|
|
|
|
|
title: localizations.paused,
|
|
|
|
|
subtitle: sprintf(localizations.score, [score]),
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
MenuEntry(
|
|
|
|
|
text: localizations.unpause,
|
|
|
|
|
onTap: () => Navigator.pop(context, true),
|
|
|
|
|
),
|
2020-01-25 20:16:19 +01:00
|
|
|
GetCoins(),
|
2020-01-15 19:04:40 +01:00
|
|
|
MenuEntry(
|
|
|
|
|
text: localizations.exit,
|
|
|
|
|
onTap: () => Navigator.pop(context, false),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|