Skip to content
pubscout

flutter_sanity_image_url

0.1.0, released 3 years ago by techurve.nl

Flutter plugin for generating Sanity CMS image URLs with color palettes and LQIP support.

WASM-ready
$ flutter pub add flutter_sanity_image_url
Source repository

What it does

Generates image URLs for Sanity CMS with crop and hotspot support. Parses image metadata such as color palettes and low-quality image placeholders (LQIP). Provides a placeholder widget for loading states.

AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter app backed by Sanity CMS.
  • You need low-quality image previews (LQIP) while loading images.
  • You want to style your app using color palettes extracted from Sanity images.

Skip it when

  • You are not using Sanity CMS as your backend.
  • You need general-purpose local image caching or advanced image picking.

Strengths

  • Native integration with Sanity CMS image features and asset pipelines.
  • Provides built-in color palette extraction and LQIP placeholder support.
  • Includes helper widgets like ImagePlaceholder.

Weaknesses

  • Tightly coupled to a single backend (Sanity CMS).
  • Limited to image URL generation and metadata parsing.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Requires adding flutter_sanity and flutter_sanity_image_url dependencies.

final builder = ImageUrlBuilder(sanityClient);

ImageUrlBuilder urlFor(asset) {
  return builder.image(asset);
}

Image.network(urlFor(image).size(200, 200).url())

Alternatives

Packages that do the same job and could replace flutter_sanity_image_url.