PinInputTextField is a TextField widget to help display different style pin. It supports all the platforms flutter supports.
Thanks to the Flutter Web, you can enjoy the preview by website without any installation.
UnderlineDecoration
BoxLooseDecoration
BoxTightDecoration
CircleDecoration
Install the latest version from pub.
Instead of using PinInputTextField, using PinInputTextFormField to control validate.
/// Determine whether replace [obscureText] with number.
final bool isTextObscure;
/// The display text when [isTextObscure] is true, emoji supported
final String obscureText;
This project exists thanks to all the people who contribute.
Please set the selection when you set the text programmatically, just like this.
Don’t set the selection in lib code since if it will cause dead loop in iOS.
If you have any idea, please make a Pull Request.
The PinEditingController
listener will execute more than once when programmatically set text, you can filter some duplicate values in your code.
Author: TinoGuo
GitHub: https://github.com/TinoGuo/pin_input_text_field
#flutter #dart #programming