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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user