flutter_lazy_load_web 0.1.2 copy "flutter_lazy_load_web: ^0.1.2" to clipboard
flutter_lazy_load_web: ^0.1.2 copied to clipboard

Flutter widget for deferred (lazy) library loading on web — splits JS bundles on demand with zero external dependencies.

Changelog #

0.1.2 #

  • Extract default error widget strings into a private _Strings constants class (lib/src/strings.dart), making future localisation or customisation straightforward.
  • Shorten pubspec description to comply with pub.dev 60–180 character limit.
  • Remove redundant flutter/foundation.dart import (already provided by flutter/material.dart).

0.1.1 #

  • Add lazy() top-level function — use directly as a go_router (or any router) builder: argument, eliminating the anonymous closure boilerplate.
  • Works without importing go_router; generic type S is inferred from the call-site.

0.1.0 #

  • Initial release.
  • DeferredWidget — wraps deferred library loading with loading/error states.
  • DeferredWidget.preload — warms up a single chunk.
  • DeferredWidget.preloadAll — warms up multiple chunks concurrently.
  • DeferredWidget.isLoaded — queries the cache without triggering a load.
  • DeferredWidget.reset — clears state for testing.
  • animationDuration parameter for the AnimatedSwitcher cross-fade.
  • Zero external dependencies.
3
likes
160
points
81
downloads

Documentation

API reference

Publisher

verified publishermatheusvinicius.dev.br

Weekly Downloads

Flutter widget for deferred (lazy) library loading on web — splits JS bundles on demand with zero external dependencies.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_lazy_load_web