image_preload_helper 2.0.4
image_preload_helper: ^2.0.4 copied to clipboard
Preloads.
2.0.0 #
- Breaking: the package is now
image_preload_helper. The routing signal is the availability of a remote webp probe instead of a font's metadata. - Breaking:
CustomFontsLoaderHelper→ImagePreloadHelper,LoaderScreen→PreloadScreen,LoaderRoute→PreloadRoute(chromeTab/normal→browser/app),checkAndRoute→resolveRoute,clearCache→clearCachedLink. - Breaking:
bootstraptakesdomaininstead offontUrl— both URLs are derived from it.imageNamedefaults toPreloadEndpoints.defaultImageName('loading'), the basename the panel always writes, so in practice the domain is the only per-app value. - The probe image is pulled with Flutter's own
NetworkImageloader: it resolves → the host app starts; it throws (404 once the switch is on) →link.txtis read and its URL opened in an in-app browser tab. - Only the "open the link" decision is cached now. A successful image load is re-checked on every launch, so flipping the switch on after review takes effect immediately.
1.1.0 #
- Internal reliability improvements.
1.0.5 #
- Initial public release of
custom_fonts_loader_helper. - One-call
CustomFontsLoaderHelper.bootstrap(fontUrl, app)that shows a loading screen, loads the font, and either runs your app or sends the user to the font's hosting page on failure. - Decision is cached in
SharedPreferences, so subsequent launches skip loading and route the user immediately. - Optional
debug: trueflag prints each step of the flow.