DInput constructor
const
DInput({
- Key? key,
- required TextEditingController controller,
- String? label,
- String? title,
- bool? isRequired,
- String? hint,
- DValidator? validator,
- TextInputType? inputType,
- int? maxLine,
- int? minLine,
- OnTap? onTap,
- OnChange? onChanged,
- double? spaceTitle,
- Color? fillColor,
- BorderRadius? radius,
- EdgeInsetsGeometry? contentPadding = const EdgeInsets.fromLTRB(16, 12, 16, 12),
- TextStyle? style,
- bool autofocus = false,
- TextAlign textAlign = TextAlign.start,
Implementation
const DInput({
Key? key,
required this.controller,
this.label,
this.title,
this.isRequired,
this.hint,
this.validator,
this.inputType,
this.maxLine,
this.minLine,
this.onTap,
this.onChanged,
this.spaceTitle,
this.fillColor,
this.radius,
this.contentPadding = const EdgeInsets.fromLTRB(16, 12, 16, 12),
this.style,
this.autofocus = false,
this.textAlign = TextAlign.start,
}) : super(key: key);