fix: opravit problém s burzou

This commit is contained in:
Matyáš Caras 2022-12-14 19:44:32 +01:00
parent ca3d0a81c6
commit 33ff600bbe
6 changed files with 42 additions and 35 deletions

View file

@ -1,3 +1,5 @@
# 1.6.1
- opravit chybu s přidáváním do burzy aktualizací knihovny
# 1.6.0
- rozdělit iOS a Android UI zvlášť pro možnost využití Cupertino knihovny
- opravit chybu s FlutterLocalNotifications na iOS

View file

@ -226,25 +226,27 @@ class _AndroidJidelnicekState extends State<AndroidJidelnicek> {
widget.canteen.objednat(j).then((_) {
Navigator.of(context, rootNavigator: true).pop();
nactiJidlo();
}).catchError((o) {
}).catchError(
(o) {
Navigator.of(context, rootNavigator: true).pop();
showDialog(
context: context,
builder: (bc) => AlertDialog(
title: Text(
Languages.of(context)!.errorOrdering),
title:
Text(Languages.of(context)!.errorOrdering),
content: Text(o.toString()),
actions: [
TextButton(
child:
Text(Languages.of(context)!.close),
child: Text(Languages.of(context)!.close),
onPressed: () {
Navigator.pop(bc);
},
)
],
));
});
),
);
},
);
}
},
onLongPress: () async {
@ -279,19 +281,20 @@ class _AndroidJidelnicekState extends State<AndroidJidelnicek> {
showDialog(
context: context,
builder: (bc) => AlertDialog(
title: Text(
Languages.of(context)!.exchangeError),
content: Text(o.toString()),
title:
Text(Languages.of(context)!.exchangeError),
content: SingleChildScrollView(
child: Text(o.toString())),
actions: [
TextButton(
child: Text(
Languages.of(context)!.close),
child: Text(Languages.of(context)!.close),
onPressed: () {
Navigator.pop(bc);
},
)
],
));
),
);
});
}
} else {

View file

@ -0,0 +1 @@
- Opravit chybu s přidáváním jídla na burzu

View file

@ -0,0 +1 @@
- Fix issue with adding food to the exchange

View file

@ -28,7 +28,7 @@ packages:
name: canteenlib
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-alpha.1"
version: "1.1.1"
characters:
dependency: transitive
description:

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: 1.6.0+25
version: 1.6.1+26
environment:
sdk: ">=2.16.1 <3.0.0"
@ -16,7 +16,7 @@ dependencies:
sdk: flutter
flutter_localizations:
sdk: flutter
canteenlib: ^1.1.0-alpha.1
canteenlib: ^1.1.1
flutter_secure_storage: 5.0.2
url_launcher: ^6.0.20
path_provider: ^2.0.9