fix: zobrazovat uvítání i u zapamatovaných
This commit is contained in:
parent
3a35c67be4
commit
9a2f079322
3 changed files with 20 additions and 8 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# 1.1.1
|
||||||
|
- Přidat informaci o neobjednatelném obědě (specialitka pro apple)
|
||||||
|
- Zobrazovat uvítací obrazovku při nedokončení i když je uživatel zapamatován
|
||||||
# 1.1.0
|
# 1.1.0
|
||||||
- Přidat uvítací obrazovku při prvním spuštění
|
- Přidat uvítací obrazovku při prvním spuštění
|
||||||
- Mírné vyčištění kódu
|
- Mírné vyčištění kódu
|
||||||
|
|
|
@ -120,13 +120,22 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Navigator.pushReplacement(
|
const storage = FlutterSecureStorage();
|
||||||
context,
|
var odsouhlasil = await storage.read(key: "oc_souhlas");
|
||||||
MaterialPageRoute(
|
if (odsouhlasil == null || odsouhlasil != "ano") {
|
||||||
builder: (context) => JidelnicekPage(
|
Navigator.pushReplacement(
|
||||||
canteen: canteen,
|
context,
|
||||||
)),
|
MaterialPageRoute(
|
||||||
);
|
builder: (c) => WelcomeScreen(canteen: canteen)));
|
||||||
|
} else {
|
||||||
|
Navigator.pushReplacement(
|
||||||
|
context,
|
||||||
|
MaterialPageRoute(
|
||||||
|
builder: (context) => JidelnicekPage(
|
||||||
|
canteen: canteen,
|
||||||
|
)),
|
||||||
|
);
|
||||||
|
}
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
|
|
@ -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: 1.1.0+4
|
version: 1.1.1+5
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.16.1 <3.0.0"
|
sdk: ">=2.16.1 <3.0.0"
|
||||||
|
|
Reference in a new issue