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,55 +17,58 @@ 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,
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Text("OpenCanteen", style: TextStyle(fontSize: 30)),
|
||||
const Text("© 2022 Matyáš Caras a přispěvatelé"),
|
||||
InkWell(
|
||||
onTap: () => launch(
|
||||
"https://github.com/hernikplays/opencanteen/blob/main/LICENSE"),
|
||||
child: const Text("Vydáno pod licencí GNU GPLv3")),
|
||||
const SizedBox(height: 15),
|
||||
Text(Languages.of(context)!.usedLibs,
|
||||
style: const TextStyle(fontSize: 19)),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"Flutter",
|
||||
"Copyright 2014 The Flutter Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/flutter/flutter/blob/master/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"Flutter_secure_storage",
|
||||
"Copyright 2017 German Saprykin. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/mogol/flutter_secure_storage/blob/develop/flutter_secure_storage/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"connectivity_plus",
|
||||
"Copyright 2017 The Chromium Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/fluttercommunity/plus_plugins/blob/main/packages/connectivity_plus/connectivity_plus/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"url_launcher",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/url_launcher/url_launcher/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"canteenlib",
|
||||
"Copyright (c) 2022 Matyáš Caras and contributors, licence MIT",
|
||||
"https://github.com/hernikplays/canteenlib/blob/main/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"path_provider",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved., licence BSD-3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/path_provider/path_provider/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"shared_preferences",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved., licence BSD-3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/path_provider/path_provider/LICENSE")
|
||||
]),
|
||||
width: MediaQuery.of(context).size.width - 50,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
const Text("OpenCanteen", style: TextStyle(fontSize: 30)),
|
||||
Text(Languages.of(context)!.copyright),
|
||||
InkWell(
|
||||
onTap: () => launch(
|
||||
"https://github.com/hernikplays/opencanteen/blob/main/LICENSE"),
|
||||
child: Text(Languages.of(context)!.license)),
|
||||
const SizedBox(height: 15),
|
||||
Text(Languages.of(context)!.usedLibs,
|
||||
style: const TextStyle(fontSize: 19)),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"Flutter",
|
||||
"Copyright 2014 The Flutter Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/flutter/flutter/blob/master/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"Flutter_secure_storage",
|
||||
"Copyright 2017 German Saprykin. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/mogol/flutter_secure_storage/blob/develop/flutter_secure_storage/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"connectivity_plus",
|
||||
"Copyright 2017 The Chromium Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/fluttercommunity/plus_plugins/blob/main/packages/connectivity_plus/connectivity_plus/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"url_launcher",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved, licence BSD 3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/url_launcher/url_launcher/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"canteenlib",
|
||||
"Copyright (c) 2022 Matyáš Caras and contributors, licence MIT",
|
||||
"https://github.com/hernikplays/canteenlib/blob/main/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"path_provider",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved., licence BSD-3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/path_provider/path_provider/LICENSE"),
|
||||
const SizedBox(height: 10),
|
||||
cudlik(
|
||||
"shared_preferences",
|
||||
"Copyright 2013 The Flutter Authors. All rights reserved., licence BSD-3-Clause",
|
||||
"https://github.com/flutter/plugins/blob/main/packages/path_provider/path_provider/LICENSE")
|
||||
]),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -82,6 +85,8 @@ class _AboutPageState extends State<AboutPage> {
|
|||
),
|
||||
Text(
|
||||
copyright,
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(fontSize: 12),
|
||||
),
|
||||
]),
|
||||
);
|
||||
|
|
|
@ -120,19 +120,22 @@ class _BurzaPageState extends State<BurzaPage> {
|
|||
),
|
||||
body: RefreshIndicator(
|
||||
child: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 10),
|
||||
Text("${Languages.of(context)!.balance}$kredit Kč"),
|
||||
const SizedBox(height: 10),
|
||||
SingleChildScrollView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height / 1.3,
|
||||
child: Column(children: obsah),
|
||||
),
|
||||
)
|
||||
],
|
||||
child: SizedBox(
|
||||
width: MediaQuery.of(context).size.width - 50,
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 10),
|
||||
Text("${Languages.of(context)!.balance}$kredit Kč"),
|
||||
const SizedBox(height: 10),
|
||||
SingleChildScrollView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
child: SizedBox(
|
||||
height: MediaQuery.of(context).size.height / 1.3,
|
||||
child: Column(children: obsah),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
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