fix: opravit odhlášení po kliknutí na ano

This commit is contained in:
Matyáš Caras 2022-09-02 21:02:56 +02:00
parent 19380a9ee8
commit 29e94bd612
2 changed files with 4 additions and 4 deletions

View File

@ -313,9 +313,6 @@ class _JidelnicekPageState extends State<JidelnicekPage> {
title: Text(Languages.of(context)!.warning),
content: Text(Languages.of(context)!.signOutWarn),
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(Languages.of(context)!.yes)),
TextButton(
onPressed: () {
const storage = FlutterSecureStorage();
@ -323,6 +320,9 @@ class _JidelnicekPageState extends State<JidelnicekPage> {
Navigator.pushReplacement(context,
MaterialPageRoute(builder: (c) => const LoginPage()));
},
child: Text(Languages.of(context)!.yes)),
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(Languages.of(context)!.no))
],
),

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.3.1+17
version: 1.3.1+18
environment:
sdk: ">=2.16.1 <3.0.0"