loymax_personal_offers 1.1.1 copy "loymax_personal_offers: ^1.1.1" to clipboard
loymax_personal_offers: ^1.1.1 copied to clipboard

Flutter widgets for embedding Loymax personal offers via a WebView (carousel and full-screen list).

Changelog #

1.1.1 #

  • Fixed: calling reload() while the WebView was still in the loading phase briefly flipped the widget to error (the platform emits a cancellation error for the superseded navigation), tearing the WebView out of the tree until the new onPageStarted arrived. Main-frame errors that fire between loadRequest and the next onPageStarted are now suppressed.
  • Fixed: retrying from the error phase did not always reload the page (notably on Android when errorBuilder returned SizedBox.shrink()). The WebView is now kept in the tree via Visibility(maintainState: true) in error, the same way it already was in loading / empty, so the underlying native WebView is not disposed and loadRequest always lands on a live platform view.

1.1.0 #

  • Added LoymaxNoContent event (event: 'no_content') — fired by the carousel and the full list when the page loaded successfully but no offers are available for the current user.
  • Added LoymaxOffersPhase.empty and an emptyBuilder parameter on LoymaxOffersCarousel / LoymaxOffersView. If omitted, the WebView's own empty state stays visible; return SizedBox.shrink() to collapse the block (animates through AnimatedSize).
  • Exposed hideTitle (default true) on both top-level widgets so the no-title URL flag is no longer hardcoded.
  • Demo gallery extended with two emptyBuilder variants (custom card and hidden block).

Note: the additions to the sealed LoymaxOfferEvent hierarchy and to LoymaxOffersPhase may break exhaustive switch statements in host code. Either add a LoymaxNoContent / LoymaxOffersPhase.empty case, or fall through to default.

1.0.2 #

  • Removed stale root ios/ directory (leftover from the original app scaffold). Only generated/ephemeral Xcode artifacts lived there and were shipped in the published archive by mistake.

1.0.1 #

  • Removed direct dependency on webview_flutter_android; native scrollbars are now disabled via the cross-platform WebViewController.setHorizontalScrollBarEnabled / setVerticalScrollBarEnabled API (guarded by supportsSetScrollBarsEnabled).

1.0.0 #

  • Initial release as loymax_personal_offers package.
  • Extracted carousel/full-screen widgets, controller, config and event types from the original loymax_webview_demo app.
  • All internal comments and default UI strings translated to English.
  • Demo moved to example/.
  • Added LoymaxOtherEvent for forward compatibility: unknown bridge events are surfaced with their raw name and payload instead of being dropped.
  • Added MIT LICENSE.
0
likes
160
points
153
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter widgets for embedding Loymax personal offers via a WebView (carousel and full-screen list).

Repository (GitHub)
View/report issues

Topics

#loymax #webview #personal-offers #loyalty #carousel

License

MIT (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on loymax_personal_offers