Fixed APK picker + UX tweak

This commit is contained in:
Imran Remtulla
2022-08-27 15:43:29 -04:00
parent 4253203dca
commit 6c076751ab
3 changed files with 66 additions and 34 deletions

View File

@@ -50,8 +50,10 @@ class _AppPageState extends State<AppPage> {
appsProvider
.downloadAndInstallLatestApp(
[app!.app.id],
context).then((_) {
Navigator.of(context).pop();
context).then((res) {
if (res) {
Navigator.of(context).pop();
}
});
}
: null,

View File

@@ -170,6 +170,11 @@ class _SettingsPageState extends State<SettingsPage> {
)
]),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancel')),
TextButton(
onPressed: () {
if (formKey.currentState!
@@ -198,11 +203,6 @@ class _SettingsPageState extends State<SettingsPage> {
}
},
child: const Text('Import')),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Cancel'))
],
);
});