TextInput constructor
const
TextInput({
- Key? key,
- String? labelText,
- String? initialValue,
- int? maxLength,
- List<
DropdownListItem> ? options, - bool isRequired = false,
- bool enabled = true,
- bool fixedHeight = true,
- IconData? icon,
- Color? iconColor,
- String? iconTooltip,
- VoidCallback? onIconTap,
- TextStyle? textStyle,
- FocusNode? focusNode,
- TextEditingController? controller,
- Validator? validator,
- ValueChanged<
String?> ? onChanged, - EdgeInsets padding = const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
Implementation
const TextInput({
super.key,
this.labelText,
this.initialValue,
this.maxLength,
this.options,
this.isRequired = false,
this.enabled = true,
this.fixedHeight = true,
this.icon,
this.iconColor,
this.iconTooltip,
this.onIconTap,
this.textStyle,
this.focusNode,
this.controller,
this.validator,
this.onChanged,
this.padding = const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
});