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), title: Text(Languages.of(context)!.warning),
content: Text(Languages.of(context)!.signOutWarn), content: Text(Languages.of(context)!.signOutWarn),
actions: [ actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(Languages.of(context)!.yes)),
TextButton( TextButton(
onPressed: () { onPressed: () {
const storage = FlutterSecureStorage(); const storage = FlutterSecureStorage();
@ -323,6 +320,9 @@ class _JidelnicekPageState extends State<JidelnicekPage> {
Navigator.pushReplacement(context, Navigator.pushReplacement(context,
MaterialPageRoute(builder: (c) => const LoginPage())); MaterialPageRoute(builder: (c) => const LoginPage()));
}, },
child: Text(Languages.of(context)!.yes)),
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(Languages.of(context)!.no)) 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. # 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.3.1+17 version: 1.3.1+18
environment: environment:
sdk: ">=2.16.1 <3.0.0" sdk: ">=2.16.1 <3.0.0"