Skip to content

Instantly share code, notes, and snippets.

@esDotDev
Last active February 25, 2021 16:22
Show Gist options
  • Save esDotDev/00493f65386fab106f0ea663bbb1d52e to your computer and use it in GitHub Desktop.
Save esDotDev/00493f65386fab106f0ea663bbb1d52e to your computer and use it in GitHub Desktop.
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