Připravit na nové vydání (Closes #3)

This commit is contained in:
Matyáš Caras 2022-05-17 18:14:14 +02:00
parent 1a602f0d2c
commit 4818aaba7f
8 changed files with 87 additions and 63 deletions

View file

@ -1,4 +1,4 @@
# 0.2.0
# 1.0.0
- Ukládání dnešního jídelníčku offline
- Stránka s možnostmi nastavení aplikace
- Přidán anglický překlad

View file

@ -107,6 +107,10 @@ abstract class Languages {
String get usedLibs;
String get license;
String get copyright;
// Settings
String get settings;

View file

@ -19,6 +19,9 @@ class LanguageCz extends Languages {
@override
String get close => "Zavřít";
@override
String get copyright => "© 2022 Matyáš Caras a přispěvatelé";
@override
String get disagree => "Nesouhlasím";
@ -51,6 +54,9 @@ class LanguageCz extends Languages {
@override
String get inExchange => "V BURZE";
@override
String get license => "Vydáno pod licencí GNU GPLv3";
@override
String get loading => "Načítání...";

View file

@ -19,6 +19,9 @@ class LanguageEn extends Languages {
@override
String get close => "Close";
@override
String get copyright => "© 2022 Matyáš Caras and contributors";
@override
String get disagree => "I disagree";
@ -51,6 +54,9 @@ class LanguageEn extends Languages {
@override
String get inExchange => "ON EXCHANGE";
@override
String get license => "Released under GNU GPLv3";
@override
String get loading => "Loading...";

View file

@ -17,16 +17,18 @@ class _AboutPageState extends State<AboutPage> {
appBar: AppBar(
title: Text(Languages.of(context)!.about),
),
body: SingleChildScrollView(
body: Center(
child: SizedBox(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width - 50,
child: SingleChildScrollView(
child: Column(mainAxisSize: MainAxisSize.min, children: [
const Text("OpenCanteen", style: TextStyle(fontSize: 30)),
const Text("© 2022 Matyáš Caras a přispěvatelé"),
Text(Languages.of(context)!.copyright),
InkWell(
onTap: () => launch(
"https://github.com/hernikplays/opencanteen/blob/main/LICENSE"),
child: const Text("Vydáno pod licencí GNU GPLv3")),
child: Text(Languages.of(context)!.license)),
const SizedBox(height: 15),
Text(Languages.of(context)!.usedLibs,
style: const TextStyle(fontSize: 19)),
@ -68,6 +70,7 @@ class _AboutPageState extends State<AboutPage> {
]),
),
),
),
);
}
@ -82,6 +85,8 @@ class _AboutPageState extends State<AboutPage> {
),
Text(
copyright,
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 12),
),
]),
);

View file

@ -120,6 +120,8 @@ class _BurzaPageState extends State<BurzaPage> {
),
body: RefreshIndicator(
child: Center(
child: SizedBox(
width: MediaQuery.of(context).size.width - 50,
child: Column(
children: [
const SizedBox(height: 10),
@ -135,6 +137,7 @@ class _BurzaPageState extends State<BurzaPage> {
],
),
),
),
onRefresh: () => nactiBurzu(context)),
);
}

View file

@ -81,5 +81,5 @@ class OfflineJidlo {
required this.objednano,
required this.cena,
required this.naBurze,
required DateTime this.den});
required this.den});
}

View file

@ -6,7 +6,7 @@ publish_to: 'none'
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
version: 0.2.0+3
version: 1.0.0+3
environment:
sdk: ">=2.16.1 <3.0.0"