ui/widgets/images/web_network_image_impl library

Functions

buildWebNativeImage({required String imageUrl, BoxFit fit = BoxFit.cover, double? height, double? width, Widget? placeholder, Widget? errorWidget, bool circular = false}) Widget
Builds a native HTML element via HtmlElementView. This bypasses CanvasKit's CORS requirement for cross-origin images. Includes error handling: on load failure, hides the broken image icon and sets a neutral background so Flutter's placeholder/error widget shows through.