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
|
||||
- Přidat uvítací obrazovku při prvním spuštění
|
||||
- Mírné vyčištění kódu
|
||||
|
|
|
@ -120,13 +120,22 @@ class _LoginPageState extends State<LoginPage> {
|
|||
);
|
||||
return;
|
||||
}
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => JidelnicekPage(
|
||||
canteen: canteen,
|
||||
)),
|
||||
);
|
||||
const storage = FlutterSecureStorage();
|
||||
var odsouhlasil = await storage.read(key: "oc_souhlas");
|
||||
if (odsouhlasil == null || odsouhlasil != "ano") {
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (c) => WelcomeScreen(canteen: canteen)));
|
||||
} else {
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => JidelnicekPage(
|
||||
canteen: canteen,
|
||||
)),
|
||||
);
|
||||
}
|
||||
} catch (_) {
|
||||
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
|
|
|
@ -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.1.0+4
|
||||
version: 1.1.1+5
|
||||
|
||||
environment:
|
||||
sdk: ">=2.16.1 <3.0.0"
|
||||
|
|
Reference in a new issue