TF-1434 Implement autofillHints for login view

(cherry picked from commit dde68350d558fece56e46f8ce11916a2f673b26d)
This commit is contained in:
dab246
2023-04-12 16:28:50 +07:00
committed by Dat Vu
parent 76a9663968
commit b771785e58
5 changed files with 50 additions and 24 deletions
@@ -24,11 +24,19 @@ class LoginTextInputBuilder {
bool? _passwordInput;
OnSubmitted? _onSubmitted;
FocusNode? _focusNode;
final List<String>? autofillHints;
final bool autocorrect;
final BuildContext context;
final ImagePaths imagePaths;
LoginTextInputBuilder(this.context, this.imagePaths);
LoginTextInputBuilder(
this.context,
this.imagePaths,
{
this.autocorrect = true,
this.autofillHints
}
);
void key(Key key) {
_key = key;
@@ -119,6 +127,8 @@ class LoginTextInputBuilder {
onChanged: (value) => _onTextChanged(value, setState),
obscureText: _obscureText ?? false,
textInputAction: _textInputAction,
autofillHints: autofillHints,
autocorrect: autocorrect,
controller: _textEditingController,
cursorColor: AppColor.primaryColor,
style: const TextStyle(color: AppColor.loginTextFieldHintColor, fontSize: 16, fontWeight: FontWeight.normal),