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

View file

@ -120,19 +120,22 @@ class _BurzaPageState extends State<BurzaPage> {
), ),
body: RefreshIndicator( body: RefreshIndicator(
child: Center( child: Center(
child: Column( child: SizedBox(
children: [ width: MediaQuery.of(context).size.width - 50,
const SizedBox(height: 10), child: Column(
Text("${Languages.of(context)!.balance}$kredit"), children: [
const SizedBox(height: 10), const SizedBox(height: 10),
SingleChildScrollView( Text("${Languages.of(context)!.balance}$kredit"),
physics: const AlwaysScrollableScrollPhysics(), const SizedBox(height: 10),
child: SizedBox( SingleChildScrollView(
height: MediaQuery.of(context).size.height / 1.3, physics: const AlwaysScrollableScrollPhysics(),
child: Column(children: obsah), child: SizedBox(
), height: MediaQuery.of(context).size.height / 1.3,
) child: Column(children: obsah),
], ),
)
],
),
), ),
), ),
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"