1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-11 09:27:08 +00:00

flutter pub upgrade (#926)

* flutter pub upgrade

* `desktop_photo_search`: Remove unneeded `unawaited`

Co-authored-by: John Ryan <ryjohn@google.com>
This commit is contained in:
Brett Morgan
2021-10-12 08:01:27 +11:00
committed by GitHub
parent 58af3f5c75
commit 994cdb4afa
20 changed files with 129 additions and 151 deletions

View File

@@ -7,7 +7,6 @@ import 'dart:typed_data';
import 'package:http/http.dart' as http;
import 'package:logging/logging.dart';
import 'package:pedantic/pedantic.dart';
import 'api_error.dart';
import 'photo.dart';
@@ -89,10 +88,10 @@ class Unsplash {
});
_log.info('GET ${photo.links!.downloadLocation}');
unawaited(http.get(Uri.parse(photo.links!.downloadLocation!), headers: {
http.get(Uri.parse(photo.links!.downloadLocation!), headers: {
'Accept-Version': 'v1',
'Authorization': 'Client-ID $_accessKey',
}));
});
return futureBytes;
}