form_bloc icon indicating copy to clipboard operation
form_bloc copied to clipboard

TexfieldBlocBuilder obscure text not working

Open benacq opened this issue 4 years ago • 3 comments

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.

benacq avatar May 21 '20 15:05 benacq

same issue

robbysoerya avatar Aug 03 '20 01:08 robbysoerya

still exists

julek-kal avatar Oct 12 '20 15:10 julek-kal

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.

Babwenbiber avatar Oct 24 '20 07:10 Babwenbiber