form_bloc
form_bloc copied to clipboard
TexfieldBlocBuilder obscure text not working
The built-in obscure property not working in TexfieldBlocBuilder, text is only obscured when i use suffix icon obscure which i might not need in all cases.
same issue
still exists
The issue still exists. However, if you look closer to the source code, you will find, that obscureText is never checked. Nevertheless if the button is SuffixButton.obscureText it works as expected. Example:
TextFieldBlocBuilder(
obscureText: true,
textFieldBloc: formBloc.password,
suffixButton: SuffixButton.obscureText,
keyboardType: TextInputType.visiblePassword,
decoration: InputDecoration(
labelText: 'Password',
prefixIcon: Icon(Icons.person),
),
),
Hope that helps people with this issue and the author to fix this issue.