It’s a beautiful and highly customizable Flutter widget for entering pin code. Suitable for use cases such as login and OTP.
dependencies:
pin_code_text_field: <VERSION>
$ flutter packages get
Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.
import 'package:pin_code_text_field/pin_code_text_field.dart';
refer to example/lib/main.dart
PinCodeTextField
in GestureDetector
, the launch an AlertDialog to access the Clipboard
and paste the strings to the TextEditController
of the PinCodeTextField
Star to show support!
Pub package Flutter documentation.
Author: LiewJunTung
GitHub: https://github.com/LiewJunTung/pin_code_text_field
#flutter #dart