CommonInputField constructor
CommonInputField({
- Key? key,
- TextEditingController? controller,
- required String hint,
- dynamic onChanged()?,
- String? validator()?,
- TextInputType? inputType,
- List<
TextInputFormatter> ? inputFormatter, - double? marginLeft,
- double? marginRight,
- double? marginTop,
- double? marginBottom,
- Widget? leading,
- Widget? trailing,
- TextCapitalization? textCapitalization,
- String? errorText,
- bool? isEnable,
- bool readOnly = false,
- RxBool? isShowTrailing,
- Color? fillColor,
- Color? borderColor,
- int? maxLines,
- FocusNode? focusNode,
- dynamic onFieldSubmitted()?,
- bool? autoFocus,
- OutlineInputBorder? underLineBorder,
- EdgeInsets? edgesInsects,
- bool? obscure = false,
- double? height,
- TextInputAction? textInputAction,
- int? maxLength,
- VoidCallback? onTap,
- bool? selectionPoint,
- EdgeInsets? margin,
- OutlineInputBorder inputBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10.0)), borderSide: BorderSide(color: Colors.grey)),
- OutlineInputBorder errorInputBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10.0)), borderSide: BorderSide(color: Colors.red)),
Implementation
CommonInputField({
super.key,
this.controller,
required this.hint,
this.onChanged,
this.validator,
this.inputType,
this.inputFormatter,
this.marginLeft,
this.marginRight,
this.marginTop,
this.marginBottom,
this.leading,
this.trailing,
this.textCapitalization,
this.errorText,
this.isEnable,
this.readOnly = false,
this.isShowTrailing,
this.fillColor,
this.borderColor,
this.maxLines,
this.focusNode,
this.onFieldSubmitted,
this.autoFocus,
this.underLineBorder,
this.edgesInsects,
this.obscure = false,
this.height,
this.textInputAction,
this.maxLength,
this.onTap,
this.selectionPoint,
this.margin,
this.inputBorder = const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10.0)),
borderSide: BorderSide(color: Colors.grey),
),
this.errorInputBorder = const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10.0)),
borderSide: BorderSide(color: Colors.red),
),
});