fix: fix redundant buttons on dialog

Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
validcube 2024-01-21 14:45:25 +07:00
parent cf1afddb9e
commit 079c0defaf
No known key found for this signature in database
GPG Key ID: DBA94253E1D3F267

View File

@ -335,13 +335,14 @@ class PatcherAPI {
Navigator.pop(context); Navigator.pop(context);
}, },
child: I18nText('cancelButton'), child: I18nText('cancelButton'),
)
else
TextButton(
onPressed: () {
Navigator.pop(context);
},
child: I18nText('cancelButton'),
), ),
TextButton(
onPressed: () {
Navigator.pop(context);
},
child: I18nText('cancelButton'),
),
if (isFixable) if (isFixable)
FilledButton( FilledButton(
onPressed: () async { onPressed: () async {