TextInputFormItem constructor
TextInputFormItem({
- Key? key,
- String? label,
- String title = "",
- String? subTitle,
- String? tipLabel,
- FocusNode? focusNode,
- TextInputAction? textInputAction,
- String prefixIconType = PrefixIconType.normal,
- String error = "",
- bool isEdit = true,
- bool obscureText = false,
- bool isRequire = false,
- bool isPrefixIconEnabled = false,
- VoidCallback? onAddTap,
- VoidCallback? onRemoveTap,
- VoidCallback? onTip,
- String? prefixText,
- String? hint,
- String? unit,
- int? maxCharCount,
- bool autofocus = false,
- String? inputType,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onChanged, - TextEditingController? controller,
- Color? backgroundColor,
- FormItemConfig? themeData,
Implementation
TextInputFormItem({
Key? key,
this.label,
this.title = "",
this.subTitle,
this.tipLabel,
this.focusNode,
this.textInputAction,
this.prefixIconType = PrefixIconType.normal,
this.error = "",
this.isEdit = true,
this.obscureText = false,
this.isRequire = false,
this.isPrefixIconEnabled = false,
this.onAddTap,
this.onRemoveTap,
this.onTip,
this.prefixText,
this.hint,
this.unit,
this.maxCharCount,
this.autofocus = false,
this.inputType,
this.inputFormatters,
this.onChanged,
this.controller,
this.backgroundColor,
this.themeData,
}) : super(key: key) {
themeData ??= FormItemConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.formItemConfig
.merge(themeData);
themeData =
themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}