Fixed code smells

This commit is contained in:
Imran Remtulla
2023-05-14 12:29:37 -04:00
parent f80c9ec33e
commit d212f13345
13 changed files with 8 additions and 16 deletions

View File

@@ -32,6 +32,7 @@ class _AppPageState extends State<AppPage> {
getUpdate(String id) {
appsProvider.checkUpdate(id).catchError((e) {
showError(e, context);
return null;
});
}

View File

@@ -71,6 +71,7 @@ class AppsPageState extends State<AppsPage> {
});
return appsProvider.checkUpdates().catchError((e) {
showError(e, context);
return <App>[];
}).whenComplete(() {
setState(() {
refreshingSince = null;
@@ -379,6 +380,7 @@ class AppsPageState extends State<AppsPage> {
[listedApps[appIndex].app.id],
globalNavigatorKey.currentContext).catchError((e) {
showError(e, context);
return <String>[];
});
},
icon: Icon(
@@ -681,6 +683,7 @@ class AppsPageState extends State<AppsPage> {
settingsProvider: settingsProvider)
.catchError((e) {
showError(e, context);
return <String>[];
});
}
});

View File

@@ -323,8 +323,8 @@ class _ImportExportPageState extends State<ImportExportPage> {
],
),
if (importInProgress)
Column(
children: const [
const Column(
children: [
SizedBox(
height: 14,
),