Připravit na nové vydání (Closes #3)
This commit is contained in:
parent
1a602f0d2c
commit
4818aaba7f
8 changed files with 87 additions and 63 deletions
|
@ -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
|
||||
|
|
|
@ -107,6 +107,10 @@ abstract class Languages {
|
|||
|
||||
String get usedLibs;
|
||||
|
||||
String get license;
|
||||
|
||||
String get copyright;
|
||||
|
||||
// Settings
|
||||
|
||||
String get settings;
|
||||
|
|
|
@ -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í...";
|
||||
|
||||
|
|
|
@ -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...";
|
||||
|
||||
|
|
|
@ -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),
|
||||
),
|
||||
]),
|
||||
);
|
||||
|
|
|
@ -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)),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -81,5 +81,5 @@ class OfflineJidlo {
|
|||
required this.objednano,
|
||||
required this.cena,
|
||||
required this.naBurze,
|
||||
required DateTime this.den});
|
||||
required this.den});
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in a new issue