bitcaptcha_flutter 0.6.4
bitcaptcha_flutter: ^0.6.4 copied to clipboard
Flutter widgets for BitCaptcha, the human verification service by Xinghui Shudun - smart invisible check, slide puzzle, text and icon click, inline or dialog.
0.6.4 #
- Fix: the puzzle was distorted when the parent was narrower than
minWidth(280). The widget sized its geometry for 280 while the parent squeezed the box, so the background was compressed horizontally but the puzzle piece was not — the piece could never line up with the gap. This hitshowBitCaptchaon 360dp-wide phones (the dialog left only 248) and 375pt iPhones. The render width is now capped at the available width and everything scales uniformly; the text / icon click widget gets the same cap, so tap positions map correctly. showBitCaptcha/showBitCaptchaTextuse a 20px horizontal inset instead of the Material default 40, so a 360dp-wide phone gets a 288px puzzle instead of 248.- When the parent is resized (rotation, split screen, desktop window) while the handle is away from the start, the handle keeps its logical position instead of its pixel offset.
- Each check now reports the measured size of the puzzle on screen and the SDK version, so display problems on a class of screens show up on the service side instead of waiting for user reports.
0.6.3 #
- Fix: after the slide puzzle showed a full-bar notice (challenge expired, load failure, network or unusual-activity error), the next challenge came back without the slider handle — only a warning icon and the "slide" hint, so it could not be dragged. Loading a new challenge now always returns to handle mode, matching the Web and Mini Program SDKs.
0.6.2 #
First release on pub.dev. The version number is kept in step with the Web and WeChat Mini Program SDKs.
- Four verification types: smart invisible check
BitCaptchaSense, slide puzzleBitCaptcha, text clickBitCaptchaText, icon clickBitCaptchaText(icon: true) - Inline widgets plus dialogs
showBitCaptcha/showBitCaptchaText; a dialog returnsnullwhen the user closes it - Fills the parent width by default (
fluid), or a fixedwidth; light / darkBitCaptchaThemewith custom colors - Built-in zh-CN / zh-TW / en / ja / ko strings;
lang: 'auto'follows the system locale,i18noverrides any key - Inline widgets load lazily (
lazy): the challenge is fetched once the widget scrolls near the viewport - Load failures, rate limits and too many attempts collapse the panel into a single notice; rate-limit countdowns retry automatically
onErrorreceives aBitCaptchaExceptionwithcode(network / server / rate_limited / cooldown / quota_exceeded / http) andretryAfter