Tweak img paths to avoid cross-domain origin issues on web platform (WIP)
This commit is contained in:
parent
43a1e801b8
commit
aad94222e8
@ -29,7 +29,7 @@ class UnsplashPhotoData {
|
|||||||
if (PlatformInfo.pixelRatio >= 1.5 || PlatformInfo.isDesktop) {
|
if (PlatformInfo.pixelRatio >= 1.5 || PlatformInfo.isDesktop) {
|
||||||
size *= 2;
|
size *= 2;
|
||||||
}
|
}
|
||||||
return 'https://wonderous.info/unsplash/$id-$size.jpg';
|
return 'https://www.wonderous.info/unsplash/$id-$size.jpg';
|
||||||
}
|
}
|
||||||
|
|
||||||
/// List of image ids by collection. This can be generated with the [UnsplashDownloadService].generateUnsplashCollectionsClass().
|
/// List of image ids by collection. This can be generated with the [UnsplashDownloadService].generateUnsplashCollectionsClass().
|
||||||
|
@ -170,7 +170,7 @@ class _YouTubeThumbnail extends StatelessWidget {
|
|||||||
final String id;
|
final String id;
|
||||||
final String caption;
|
final String caption;
|
||||||
|
|
||||||
String get imageUrl => 'http://img.youtube.com/vi/$id/hqdefault.jpg';
|
String get imageUrl => 'https://img.youtube.com/vi/$id/hqdefault.jpg';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user