mirror of
https://github.com/flutter/samples.git
synced 2026-07-15 21:42:27 +00:00
Update desktop_photo_search to use url_launcher's Link (#780)
This commit is contained in:
@@ -86,13 +86,13 @@ class Unsplash {
|
||||
// https://help.unsplash.com/en/articles/2511258-guideline-triggering-a-download
|
||||
|
||||
_log.info('GET ${photo.urls.full}');
|
||||
final futureBytes = http.readBytes(photo.urls.full, headers: {
|
||||
final futureBytes = http.readBytes(Uri.parse(photo.urls.full), headers: {
|
||||
'Accept-Version': 'v1',
|
||||
'Authorization': 'Client-ID $_accessKey',
|
||||
});
|
||||
|
||||
_log.info('GET ${photo.links.downloadLocation}');
|
||||
unawaited(http.get(photo.links.downloadLocation, headers: {
|
||||
unawaited(http.get(Uri.parse(photo.links.downloadLocation), headers: {
|
||||
'Accept-Version': 'v1',
|
||||
'Authorization': 'Client-ID $_accessKey',
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user