turnstile_pro 0.1.1
turnstile_pro: ^0.1.1 copied to clipboard
A lightweight, webview_flutter-based Cloudflare Turnstile widget with size, theme, auto-retry/refresh options and a controller. No flutter_inappwebview.
0.1.1 #
- Fix: widget could stay invisible on iOS/WKWebView because the appear
animation was gated on the JS
readymessage, which can be delayed or missed. The animation is now driven from mount, so the widget is always shown once laid out. - Change: default
baseUrlis nowhttps://localhost/so the page is a secure context (recommended by Turnstile on iOS).
0.1.0 #
Initial release.
TurnstileProwidget rendering Cloudflare Turnstile viawebview_flutter.TurnstileOptionsbundling appearance/behavior:- Size modes:
normal,compact,flexible(auto default height per size). - Theme:
light,dark,auto; configurablelanguage. - Auto-retry (
retry/retryInterval) and refresh behavior (refreshExpired,refreshTimeout). appearance,borderRadius,backgroundColor, appearcurveandanimationDuration.
- Size modes:
action/cDatasupport.- Optional
loadingWidgetshown until the challenge is ready. TurnstileControllerwithreset()andreload().- Callbacks:
onTokenReceived,onError(error/expired/timeout),onWidgetReady. - Reliable
flexiblefull-width rendering (waits for a non-zero layout width and re-renders on resize). - No
flutter_inappwebviewdependency.