ButtonTextField constructor

const ButtonTextField({
  1. Key? key,
  2. required String hintText,
  3. required TextValidationType textValidationType,
  4. required void onFieldSubmitted(
    1. String
    )?,
  5. required Icon buttonIcon,
  6. void onChanged(
    1. String
    )?,
  7. Color? contentColor,
  8. Color? borderColor,
  9. IconData? prefixIcon,
  10. int? minLines,
  11. int? maxLines = 1,
  12. TextInputType? textInputType,
  13. TextEditingController? previousPasswordController,
  14. FocusNode? focusNode,
  15. FocusNode? nextFocus,
  16. Widget? suffix,
  17. Widget? prefix,
  18. Widget? textFieldPrefix,
  19. Widget? textFieldSuffix,
  20. double widthPadding = 0,
  21. BorderRadius? borderRadius,
})

Implementation

const ButtonTextField({
  super.key,
  required this.hintText,
  required this.textValidationType,
  required this.onFieldSubmitted,
  required this.buttonIcon,
  this.onChanged,
  this.contentColor,
  this.borderColor,
  this.prefixIcon,
  this.minLines,
  this.maxLines = 1,
  this.textInputType,
  this.previousPasswordController,
  this.focusNode,
  this.nextFocus,
  this.suffix,
  this.prefix,
  this.textFieldPrefix,
  this.textFieldSuffix,
  this.widthPadding = 0,
  this.borderRadius,
});