Skip to content
pubscout

flutter_verification_code

1.1.7, released 3 years ago by agoradesk.com

A Flutter package that helps you create a verification input field.

WASM-ready
$ flutter pub add flutter_verification_code
Source repository

What it does

Provides a customizable verification code input widget that supports features like multi-box digit entry, copy/pasting entire codes, clearing inputs, and callbacks for completion and editing states.

AI-written summary of version 1.1.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an OTP (One-Time Password) or SMS verification code entry screen
  • You want customized underlined or boxed verification inputs with copy-paste support

Skip it when

  • You need complex form validation libraries beyond standard text input entry

Strengths

  • Supports copy/pasting the entire verification code
  • Customizable styling including underline color, box borders, cursor color, and text style
  • Handles backspace navigation between boxes easily

Weaknesses

  • Limited documentation beyond basic examples and README
  • Specific to verification code entry

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

VerificationCode(
  textStyle: TextStyle(fontSize: 20.0, color: Colors.red[900]),
  keyboardType: TextInputType.number,
  length: 4,
  onCompleted: (String value) {
    print(value);
  },
  onEditing: (bool value) {
    print(value);
  },
)

Alternatives

Packages that do the same job and could replace flutter_verification_code.