Null safety
This commit is contained in:
parent
acc11c91e1
commit
b90cf58906
|
|
@ -90,11 +90,11 @@ class _DesktopSessionTimeoutState extends State<DesktopSessionTimeout> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
final store = StoreProvider.of<AppState>(context);
|
final store = StoreProvider.of<AppState>(context);
|
||||||
final completer = Completer<Null>();
|
final completer = Completer<Null>();
|
||||||
completer.future.then((value) {
|
completer.future.then(() {
|
||||||
setState(() {
|
setState(() {
|
||||||
_isWarned = false;
|
_isWarned = false;
|
||||||
});
|
});
|
||||||
} as FutureOr<_> Function(Null));
|
} as FutureOr<Null> Function(Null));
|
||||||
store.dispatch(RefreshData(completer: completer));
|
store.dispatch(RefreshData(completer: completer));
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,9 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
|
||||||
webClient.get(url, credentials.token).then((dynamic response) {
|
webClient.get(url, credentials.token).then((dynamic response) {
|
||||||
store.dispatch(RefreshData(
|
store.dispatch(RefreshData(
|
||||||
completer: Completer<Null>()
|
completer: Completer<Null>()
|
||||||
..future.then((value) {
|
..future.then<Null>(() {
|
||||||
runCheck();
|
runCheck();
|
||||||
} as FutureOr<_> Function(Null))));
|
} as FutureOr<Null> Function(Null))));
|
||||||
}).catchError((dynamic error) {
|
}).catchError((dynamic error) {
|
||||||
showErrorDialog(message: error);
|
showErrorDialog(message: error);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -122,8 +122,9 @@ class MultiSelectListState extends State<MultiSelectList> {
|
||||||
columnTitle.isEmpty ? lookupOption(option) : columnTitle;
|
columnTitle.isEmpty ? lookupOption(option) : columnTitle;
|
||||||
});
|
});
|
||||||
final keys = options.keys.toList();
|
final keys = options.keys.toList();
|
||||||
keys.sort((a, b) =>
|
keys.sort((a, b) => lookupOption(a!)!
|
||||||
lookupOption(a!)!.toLowerCase().compareTo(lookupOption(b!)!.toLowerCase()));
|
.toLowerCase()
|
||||||
|
.compareTo(lookupOption(b!)!.toLowerCase()));
|
||||||
|
|
||||||
final column = Container(
|
final column = Container(
|
||||||
width: isMobile(context) ? double.maxFinite : 400,
|
width: isMobile(context) ? double.maxFinite : 400,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue