overture 0.1.0
overture: ^0.1.0 copied to clipboard
Warm Flutter's image cache before the first frame. Drop-in from any non-widget code, with NetworkImage or any custom ImageProvider.
Changelog #
0.1.0 - 2026-05-08 #
Added #
- Initial release.
Overture.warm(urls, {timeout})— pre-warmsPaintingBinding.instance.imageCachewith a batch of network URLs from any non-widget code (noBuildContextrequired). Convenience for the common case: URL strings intoNetworkImage.Overture.warmWith<T>(builder, inputs, {timeout})— generic warming with anyImageProvider. Pairoverturewithcached_network_imagefor disk persistence, custom providers with auth headers, file-based providers, etc. See README "Pairing with cached_network_image" for the canonical CNI integration pattern.Overture.warm(urls)is a thin wrapper overwarmWith<String>(NetworkImage.new, urls)(with empty-string normalization).- Shared semantics for both methods —
nullinputs skipped, duplicates dropped within a call, per-item errors swallowed (warming never throws), total wait capped bytimeout(default5s).