CustomTextfield constructor
const
CustomTextfield({
- Key? key,
- Size? size,
- TextEditingController? controller,
- String? hintStr,
- TextStyle? hintStyle,
- Icon? prefixIcon,
- Widget? prefix,
- Icon? suffixIcon,
- Widget? suffix,
- bool isObsecure = false,
- Function? onChanged,
- int? maxLength,
- int? maxLines,
- bool autoFocus = false,
- Function? onSubmitted,
- List<
TextInputFormatter> ? textInputFormater, - bool readOnly = false,
- TextInputType? keyboardType,
- TextStyle? textStyle,
- List<
BoxShadow> ? boxShadow, - Color? bgColor,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? padding,
- 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);