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
32
lib/screens/records.dart
Normal file
32
lib/screens/records.dart
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:sprintf/sprintf.dart';
|
||||
|
||||
import '../localizations.dart';
|
||||
import '../storage.dart';
|
||||
import '../widgets/menu.dart';
|
||||
import '../widgets/menu_entry.dart';
|
||||
|
||||
class RecordsScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localizations = ChristmasCatsLocalizations.of(context);
|
||||
|
||||
return Scaffold(
|
||||
body: Menu(
|
||||
title: localizations.records,
|
||||
children: <Widget>[
|
||||
MenuEntry(
|
||||
text: sprintf(localizations.records1, [storage.highScore1]),
|
||||
),
|
||||
MenuEntry(
|
||||
text: sprintf(localizations.records2, [storage.highScore2]),
|
||||
),
|
||||
MenuEntry(
|
||||
text: sprintf(localizations.records3, [storage.highScore3]),
|
||||
),
|
||||
],
|
||||
showBackButton: true,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue