mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Add unawaited_futures (#1148)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
|
||||
@@ -86,10 +87,10 @@ class Unsplash {
|
||||
});
|
||||
|
||||
_log.info('GET ${photo.links!.downloadLocation}');
|
||||
http.get(Uri.parse(photo.links!.downloadLocation!), headers: {
|
||||
unawaited(http.get(Uri.parse(photo.links!.downloadLocation!), headers: {
|
||||
'Accept-Version': 'v1',
|
||||
'Authorization': 'Client-ID $_accessKey',
|
||||
});
|
||||
}));
|
||||
|
||||
return futureBytes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user