otp_verification_flutter 0.1.2 copy "otp_verification_flutter: ^0.1.2" to clipboard
otp_verification_flutter: ^0.1.2 copied to clipboard

An animated, fully customizable OTP verification widget for Flutter, with native autofill support (SMS / QuickType) and idle, verifying, success and error states.

Changelog #

All notable changes to this package are documented here. The format follows Keep a Changelog and semantic versioning.

0.1.2 #

Added #

  • topics in pubspec.yaml (otp, authentication, sms, verification).

0.1.1 #

Changed #

  • English pubspec.yaml description and CHANGELOG.

Fixed #

  • Replaced the deprecated Color.withOpacity with a version-agnostic helper (no analyzer INFO on recent Flutter, still builds on Flutter 3.10).
  • Removed files that were accidentally shipped in 0.1.0 (a leftover lib/main.dart, a stray root android/ folder, and the example app's generated platform folders). Added a .pubignore.
  • README demo image now uses an absolute URL so it renders on pub.flutter-io.cn.

0.1.0 #

First release.

Added #

  • OtpController — state (idle / verifying / success / error), focus, current code, reset(), fillAll() for autofill.
  • OtpField — a row of animated OTP boxes: auto-focus, auto-advance, pop-in on fill, glow on focus, horizontal shake on error.
  • Native autofill via AutofillHints.oneTimeCode (SMS Retriever on Android / QuickType on iOS), toggled with enableAutofill.
  • OtpVerificationWidget — full state-driven screen: title / subtitle, boxes, "Resend" link, "Continue" button.
  • OtpMergeView — the verification choreography: the boxes slide to the center and merge into a single card the size of one box, a pulsing loader, then a green checkmark (pop + glow) + label + button, or a red shake followed by the card splitting back into empty boxes.
  • OtpFieldTheme — complete theme (per-state colors, radius, size, border, durations/curves, mergeDuration) with darkGlow and lightMinimal presets and copyWith.
  • Full customization of every OtpVerificationWidget text (title, verifyingTitle, verifyingSubtitle, successTitle, successSubtitle, continueLabel, resendLabel, didntGetCodeLabel).
  • Style customization: continueButtonStyle, continueButtonTextStyle, resendLabelStyle, didntGetCodeStyle.

Fixed #

  • Backspace on a filled box now clears that box instead of wiping the previous box and moving focus back to it.
1
likes
160
points
135
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An animated, fully customizable OTP verification widget for Flutter, with native autofill support (SMS / QuickType) and idle, verifying, success and error states.

Repository (GitHub)
View/report issues

Topics

#otp #authentication #sms #verification

License

MIT (license)

Dependencies

flutter

More

Packages that depend on otp_verification_flutter