image_preload_helper 2.0.4 copy "image_preload_helper: ^2.0.4" to clipboard
image_preload_helper: ^2.0.4 copied to clipboard

PlatformAndroid

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: CustomFontsLoaderHelperImagePreloadHelper, LoaderScreenPreloadScreen, LoaderRoutePreloadRoute (chromeTab/normalbrowser/app), checkAndRouteresolveRoute, clearCacheclearCachedLink.
  • Breaking: bootstrap takes domain instead of fontUrl — both URLs are derived from it. imageName defaults to PreloadEndpoints.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 NetworkImage loader: it resolves → the host app starts; it throws (404 once the switch is on) → link.txt is 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: true flag prints each step of the flow.