TermosTextField constructor
const
TermosTextField({
- Key? key,
- String? label,
- required TextEditingController controller,
- FocusNode? focusNode,
- String? hintText,
- TermosTextFieldStyle textFieldStyle = TermosTextFieldStyle.code,
- TextStyle? style,
- TextStyle? hintStyle,
- int maxLines = 1,
- int? minLines,
- bool autofocus = false,
- bool enabled = true,
- bool readOnly = false,
- bool obscureText = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - TextInputAction? textInputAction,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - TextAlignVertical? textAlignVertical,
- Widget? prefixIcon,
- Widget? suffixIcon,
- BoxConstraints? prefixIconConstraints,
- BoxConstraints? suffixIconConstraints,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14),
- double? height,
- double? glowCenterY,
- double labelSpacing = 8,
Implementation
const TermosTextField({
super.key,
this.label,
required this.controller,
this.focusNode,
this.hintText,
this.textFieldStyle = TermosTextFieldStyle.code,
this.style,
this.hintStyle,
this.maxLines = 1,
this.minLines,
this.autofocus = false,
this.enabled = true,
this.readOnly = false,
this.obscureText = false,
this.onChanged,
this.onSubmitted,
this.textInputAction,
this.keyboardType,
this.inputFormatters,
this.textAlignVertical,
this.prefixIcon,
this.suffixIcon,
this.prefixIconConstraints,
this.suffixIconConstraints,
this.contentPadding = const EdgeInsets.symmetric(
horizontal: 20,
vertical: 14,
),
this.height,
this.glowCenterY,
this.labelSpacing = 8,
});