image_render library
Properties
-
defaultImageRenders
→ Map<
ImageSourceMatcher, ImageRender> -
final
Functions
-
assetImageRender(
{double? width, double? height}) → ImageRender -
assetUriMatcher(
) → ImageSourceMatcher -
base64ImageRender(
) → ImageRender -
dataUriMatcher(
{String? encoding = 'base64', String? mime}) → ImageSourceMatcher -
networkImageRender(
{Map< String, String> ? headers, String mapUrl(String?)?, double? width, double? height, Widget altWidget(String?)?, Widget loadingWidget()?}) → ImageRender -
networkSourceMatcher(
{List< String> schemas = const ["https", "http"], List<String> ? domains, String? extension}) → ImageSourceMatcher -
svgDataImageRender(
) → ImageRender -
svgNetworkImageRender(
) → ImageRender
Typedefs
-
ImageRender
= Widget? Function(RenderContext context, Map<
String, String> attributes, Element? element) -
ImageSourceMatcher
= bool Function(Map<
String, String> attributes, Element? element)