Closed daveols closed 3 years ago
@TinoGuo flutter analyze
is failing due to the usage of deprecated autovalidate
. Would you like me to remove this in the same PR?
Done! So this PR will break implementations using autovalidate
. Might need to bump the major.
@TinoGuo I've updated the PR 🎉
~Use
AutoFillHints.oneTimeCode
by default to enable better platform support for OTP code inputs.~~This can be controlled via
enableCodeAutofill
, which defaults totrue
.~~See: https://api.flutter.dev/flutter/services/AutofillHints/oneTimeCode-constant.html~
Update
For more flexibility this PR just exposes
autofillHints
on the underlyingTextField
so that users can add whatever they want without any default behaviour.I've also added a proper deprecation notice for
autovalidate
and exposed it's replacement (autovalidateMode
) which defaults to the same behaviour.