RatioInputFormItem constructor
RatioInputFormItem({
- Key? key,
- String? label,
- String title = "",
- String? subTitle,
- String? tipLabel,
- String prefixIconType = PrefixIconType.normal,
- String error = "",
- bool isEdit = true,
- bool isRequire = false,
- bool isPrefixIconEnabled = false,
- VoidCallback? onAddTap,
- VoidCallback? onRemoveTap,
- VoidCallback? onTip,
- String? hint,
- String? inputType,
- TextEditingController? controller,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onChanged, - Color? backgroundColor,
- FormItemConfig? themeData,
Implementation
RatioInputFormItem(
{Key? key,
this.label,
this.title = "",
this.subTitle,
this.tipLabel,
this.prefixIconType = PrefixIconType.normal,
this.error = "",
this.isEdit = true,
this.isRequire = false,
this.isPrefixIconEnabled = false,
this.onAddTap,
this.onRemoveTap,
this.onTip,
this.hint,
this.inputType,
this.controller,
this.inputFormatters,
this.onChanged,
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));
}