Read page as text

NIB / PLAYGROUND

One-time code input playground — NibComponents

Try one-time code input in Flutter. Enter six fixture digits through the keyboard or an on-screen keypad.

Open interactive view

Enter six fixture digits through the keyboard or an on-screen keypad.

Read the full component guide and API

Public widgets and APIs

  • NibOtpCell
  • NibOtpController
  • NibOtpInput
  • NibOtpKey
  • NibOtpKeyboard
  • NibOtpKeypad
  • NibOtpKeypadStyle

Example Dart code

NibOtpInput(length: 6, semanticLabel: 'Verification code',
  onCompleted: (code) { /* Ask your own server to verify it. */ },
)

Playground controls

ControlTypeOptions or rangeHelp
Animate feedbacktoggle
Disabledtoggle
Input methodchoicesystem, keypad
Obscure digitstoggle
Accept inputtoggle
Feedbackchoicedefault, error
Configured digitstext

Fixture only: no code verification, authentication, or SMS service.

System autofill and physical screen-reader behavior are not established by widget tests.