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 - Ukládání dnešního jídelníčku offline
- Stránka s možnostmi nastavení aplikace - Stránka s možnostmi nastavení aplikace
- Přidán anglický překlad - Přidán anglický překlad

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -81,5 +81,5 @@ class OfflineJidlo {
required this.objednano, required this.objednano,
required this.cena, required this.cena,
required this.naBurze, 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. # The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43 # A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +. # followed by an optional build number separated by a +.
version: 0.2.0+3 version: 1.0.0+3
environment: environment:
sdk: ">=2.16.1 <3.0.0" sdk: ">=2.16.1 <3.0.0"