Last active
February 25, 2021 16:22
-
-
Save esDotDev/00493f65386fab106f0ea663bbb1d52e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
// Run this in skia rendering mode, and upload to a web server. | |
// Observe as no images load. | |
class CorsImageSpike extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
builder: (_, __) => Column( | |
children: [ | |
Flexible( | |
child: CachedNetworkImage( | |
imageUrl: | |
"http://res.cloudinary.com/gskinner/image/upload/v1614066383/photo-1561909364-1690892d91a2_-_Copy_2_w7py5h.jpg", | |
), | |
), | |
Flexible( | |
child: Image.network( | |
"http://res.cloudinary.com/gskinner/image/upload/v1614066383/photo-1561909364-1690892d91a2_-_Copy_2_w7py5h.jpg"), | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment