When using HttpGet the image will work on Skia and it will use the CachedNetworkImageProvider.headers when they are provided. In this package it also uses any url transformations that might be executed by the CachedNetworkImageProvider.cacheManager. However, this method does require a CORS handshake and will not just work for every image from the web.
The HtmlImage does not need a CORS handshake, but it also does not use your provided headers and it does not work when using Skia to render the page.
- HtmlImage → const ImageRenderMethodForWeb
HtmlImage uses a default web image including default browser caching. This is the recommended and default choice.
- HttpGet → const ImageRenderMethodForWeb
HttpGet uses an http client to fetch an image. It enables the use of headers, but loses some default web functionality.
→ const List<
A constant List of the values in this enum, in order of their declaration.