Use stable Future API

This commit is contained in:
shilangyu 2021-02-06 14:37:35 +01:00
parent 0bc90c93ca
commit ecda8384c6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class AboutTile extends HookWidget {
Widget build(BuildContext context) {
final packageInfoSnap = useMemoFuture(
() => PackageInfo.fromPlatform()
.onError((_, __) => PackageInfo(version: '')),
.then((e) => e, onError: (_, __) => PackageInfo(version: '')),
);
final assetBundle = DefaultAssetBundle.of(context);
final changelogSnap =