df_pwa_utils 0.4.1 copy "df_pwa_utils: ^0.4.1" to clipboard
df_pwa_utils: ^0.4.1 copied to clipboard

Web utilities for progressive web applications (PWA). No-ops on non-web platforms.

Changelog #

0.4.1 #

  • feat: setToUrlHashStrategy() for opting back into '/#/...' URLs on static hosts; no-op on non-web.

0.4.0 #

  • breaking: WebNavigator.onPopState invokes callbacks with the app-relative Uri (base href stripped) instead of the raw URL.
  • breaking: Uri.pathAndQuery extension now includes the fragment when present.
  • fix: <base href> resolution handles absolute URLs (with scheme/host) and missing leading/trailing slashes.
  • fix: stripBaseHref matches when the path equals the base href without its trailing slash.
  • fix: PlatformNavigator.removeStateCallback on non-web now returns false (was incorrectly returning true).
  • perf: WebNavigator pop-state handler calls replaceState once per pop instead of once per registered callback.
1
likes
150
points
162
downloads

Documentation

API reference

Publisher

verified publisherdev-cetera.com

Weekly Downloads

Web utilities for progressive web applications (PWA). No-ops on non-web platforms.

Homepage
Repository (GitHub)
View/report issues

Topics

#path-strategy #web #pwa #url #utility

Funding

Consider supporting this project:

www.buymeacoffee.com
www.patreon.com
github.com

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, web

More

Packages that depend on df_pwa_utils