TextInput constructor

const TextInput({
  1. Key? key,
  2. String? labelText,
  3. String? initialValue,
  4. int? maxLength,
  5. List<DropdownListItem>? options,
  6. bool isRequired = false,
  7. bool enabled = true,
  8. bool fixedHeight = true,
  9. IconData? icon,
  10. Color? iconColor,
  11. String? iconTooltip,
  12. VoidCallback? onIconTap,
  13. FocusNode? focusNode,
  14. TextEditingController? controller,
  15. Validator? validator,
  16. ValueChanged<String?>? onChanged,
  17. 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.focusNode,
  this.controller,
  this.validator,
  this.onChanged,
  this.padding = const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
});