diff --git a/lib/ui/app/desktop_session_timeout.dart b/lib/ui/app/desktop_session_timeout.dart index f49a827f1..2295df7de 100644 --- a/lib/ui/app/desktop_session_timeout.dart +++ b/lib/ui/app/desktop_session_timeout.dart @@ -90,11 +90,11 @@ class _DesktopSessionTimeoutState extends State { onPressed: () { final store = StoreProvider.of(context); final completer = Completer(); - completer.future.then((value) { + completer.future.then(() { setState(() { _isWarned = false; }); - } as FutureOr<_> Function(Null)); + } as FutureOr Function(Null)); store.dispatch(RefreshData(completer: completer)); }, child: Text( diff --git a/lib/ui/app/dialogs/health_check_dialog.dart b/lib/ui/app/dialogs/health_check_dialog.dart index d9aa8f690..e34e98f6e 100644 --- a/lib/ui/app/dialogs/health_check_dialog.dart +++ b/lib/ui/app/dialogs/health_check_dialog.dart @@ -88,9 +88,9 @@ class _HealthCheckDialogState extends State { webClient.get(url, credentials.token).then((dynamic response) { store.dispatch(RefreshData( completer: Completer() - ..future.then((value) { + ..future.then(() { runCheck(); - } as FutureOr<_> Function(Null)))); + } as FutureOr Function(Null)))); }).catchError((dynamic error) { showErrorDialog(message: error); }); diff --git a/lib/ui/app/dialogs/multiselect_dialog.dart b/lib/ui/app/dialogs/multiselect_dialog.dart index 785c7a344..faa933811 100644 --- a/lib/ui/app/dialogs/multiselect_dialog.dart +++ b/lib/ui/app/dialogs/multiselect_dialog.dart @@ -122,8 +122,9 @@ class MultiSelectListState extends State { columnTitle.isEmpty ? lookupOption(option) : columnTitle; }); final keys = options.keys.toList(); - keys.sort((a, b) => - lookupOption(a!)!.toLowerCase().compareTo(lookupOption(b!)!.toLowerCase())); + keys.sort((a, b) => lookupOption(a!)! + .toLowerCase() + .compareTo(lookupOption(b!)!.toLowerCase())); final column = Container( width: isMobile(context) ? double.maxFinite : 400,