loymax_personal_offers 1.1.1
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 theloadingphase briefly flipped the widget toerror(the platform emits a cancellation error for the superseded navigation), tearing the WebView out of the tree until the newonPageStartedarrived. Main-frame errors that fire betweenloadRequestand the nextonPageStartedare now suppressed. - Fixed: retrying from the
errorphase did not always reload the page (notably on Android whenerrorBuilderreturnedSizedBox.shrink()). The WebView is now kept in the tree viaVisibility(maintainState: true)inerror, the same way it already was inloading/empty, so the underlying native WebView is not disposed andloadRequestalways lands on a live platform view.
1.1.0 #
- Added
LoymaxNoContentevent (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.emptyand anemptyBuilderparameter onLoymaxOffersCarousel/LoymaxOffersView. If omitted, the WebView's own empty state stays visible; returnSizedBox.shrink()to collapse the block (animates throughAnimatedSize). - Exposed
hideTitle(defaulttrue) on both top-level widgets so theno-titleURL flag is no longer hardcoded. - Demo gallery extended with two
emptyBuildervariants (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-platformWebViewController.setHorizontalScrollBarEnabled/setVerticalScrollBarEnabledAPI (guarded bysupportsSetScrollBarsEnabled).
1.0.0 #
- Initial release as
loymax_personal_offerspackage. - Extracted carousel/full-screen widgets, controller, config and event types
from the original
loymax_webview_demoapp. - All internal comments and default UI strings translated to English.
- Demo moved to
example/. - Added
LoymaxOtherEventfor forward compatibility: unknown bridge events are surfaced with their raw name and payload instead of being dropped. - Added MIT LICENSE.