SFTextField constructor

const SFTextField({
  1. required String placeholder,
  2. bool? isInError = false,
  3. ComponentSize size = ComponentSize.md,
  4. TextInputAction textInputAction = TextInputAction.next,
  5. bool autofocus = false,
  6. TextEditingController? controller,
  7. FocusNode? focusNode,
  8. dynamic onSubmitted(
    1. String
    )?,
  9. Color? backgroundColor,
  10. String? prefixText,
  11. Widget? suffixWidget,
  12. String? semanticsLabel,
  13. Widget builder(
    1. BuildContext,
    2. Widget
    )?,
  14. bool disabled = false,
  15. Key? key,
})

Implementation

const SFTextField({
  required this.placeholder,
  this.isInError = false,
  this.size = ComponentSize.md,
  this.textInputAction = TextInputAction.next,
  this.autofocus = false,
  this.controller,
  this.focusNode,
  this.onSubmitted,
  this.backgroundColor,
  this.prefixText,
  this.suffixWidget,
  this.semanticsLabel,
  this.builder,
  this.disabled = false,
  super.key,
});