Skip to content

TsaiPinInput

A numeric PIN input that represents entered digits as dots.

Open live example

TsaiPinInput(
  length: 4,
  onChanged: (value) => pin = value,
  onCompleted: unlock,
  semanticLabel: 'Four-digit PIN',
)

length must be greater than zero. isError and isSuccess are mutually exclusive. The editable sequence is exposed to assistive technology through semanticLabel.