1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-13 19:08:41 +00:00

Update desktop_photo_search to use url_launcher's Link (#780)

This commit is contained in:
Brett Morgan
2021-03-20 07:30:56 +11:00
committed by GitHub
parent 873ff4306b
commit 5cb6c39bd7
21 changed files with 456 additions and 525 deletions

View File

@@ -128,7 +128,7 @@ class UnsplashHomePage extends StatelessWidget {
await photoSearchModel.download(photo: photo);
final photoFile = XFile.fromData(fileData,
mimeType: 'image/jpeg');
photoFile.saveTo(path);
await photoFile.saveTo(path);
}
},
)