i using flutter_form_builder: ^3.7.3.
and I use this "obscure text: true" to hide the password field in FormBuilderTextField.
flutter compiler give an error:-
"Obscured fields cannot be multiline.
'package:flutter/src/material/text_form_field.dart':
Failed assertion: line 149 pos 15: '!obscureText || maxLines == 1' "
@marqueetest you need to pass this attribute: maxLines: 1
This error was introduced in flutter 1.12
Could we default to maxLines: 1 when obsureText is set? This feels like a easily fixable default.
Most helpful comment
@marqueetest you need to pass this attribute:
maxLines: 1This error was introduced in flutter 1.12