CustomTextfield constructor

const CustomTextfield({
  1. Key? key,
  2. Size? size,
  3. TextEditingController? controller,
  4. String? hintStr,
  5. TextStyle? hintStyle,
  6. Icon? prefixIcon,
  7. Widget? prefix,
  8. Icon? suffixIcon,
  9. Widget? suffix,
  10. bool isObsecure = false,
  11. Function? onChanged,
  12. int? maxLength,
  13. int? maxLines,
  14. bool autoFocus = false,
  15. Function? onSubmitted,
  16. List<TextInputFormatter>? textInputFormater,
  17. bool readOnly = false,
  18. TextInputType? keyboardType,
  19. TextStyle? textStyle,
  20. List<BoxShadow>? boxShadow,
  21. Color? bgColor,
  22. BorderRadiusGeometry? borderRadius,
  23. EdgeInsetsGeometry? padding,
  24. EdgeInsetsGeometry? margin,
})

Implementation

const CustomTextfield({
  Key? key,
  this.size,
  this.controller,
  this.hintStr,
  this.hintStyle,
  this.prefixIcon,
  this.prefix,
  this.suffixIcon,
  this.suffix,
  this.isObsecure = false,
  this.onChanged,
  this.maxLength,
  this.maxLines,
  this.autoFocus = false,
  this.onSubmitted,
  this.textInputFormater,
  this.readOnly = false,
  this.keyboardType,
  this.textStyle,
  this.boxShadow,
  this.bgColor,
  this.borderRadius,
  this.padding,
  this.margin,
}) : super(key: key);