LiewJunTung / pin_code_text_field

A highly customisable Flutter widget for entering pin code. Suitable for use cases such as login and OTP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The named parameter 'pinCodeTextFieldLayoutType' isn't defined.

sapnapositive opened this issue · comments

I have trying code as per example, getting error on following line:

pinCodeTextFieldLayoutType: PinCodeTextFieldLayoutType.AUTO_ADJUST_WIDTH,

Undefined name 'PinCodeTextFieldLayoutType'.
The named parameter 'pinCodeTextFieldLayoutType' isn't defined.

Having this same issue
Any fix?

Sorry, I have updated the README, PinCodeTextFieldLayoutType.AUTO_ADJUST_WIDTH has been removed. Thanks for reporting the issue! :)

@LiewJunTung what's the alternative to PinCodeTextFieldLayoutType.AUTO_ADJUST_WIDTH?

@LiewJunTung without AutoAdjust the pin boxes are not aligned properly.

@LiewJunTung what's the alternative to PinCodeTextFieldLayoutType.AUTO_ADJUST_WIDTH?

you can use this code as altenative

wrapAlignment: WrapAlignment.spaceAround,