TinoGuo/pin_input_text_field

Initial value not displayed on first build

Closed this issue · 2 comments

Sample:

final _controller = TextEditingController(text:'654');
PinInputTextFormField(
  pinLength: 6,
  controller: _controller,
);

When PinInputTextFormField is built the first time, 654 won't show up. Upon focus, it does. This occurs both with controller and initialValue properties. I believe the cause of the probalem is that _text is set to null when the first build runs.

Thank you for your feedback. I merged your code and published the new version 2.0.2

Thanks!