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