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.
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.
- image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - octo_image
A multifunctional Flutter image widget supporting placeholders, error widgets, and fading.
94Compare - cached_network_image
Load and cache network images in Flutter with placeholder and error widget support.
91Compare - fc_native_image_resize
A Flutter plugin to resize images via native APIs.
69Compare