RangeInputFormItem constructor
RangeInputFormItem({
- 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? hintMin,
- String? hintMax,
- String? minUnit,
- String? maxUnit,
- int? leftMaxCount,
- int? rightMaxCount,
- String? inputType,
- ValueChanged<
String> ? onMinChanged, - ValueChanged<
String> ? onMaxChanged, - TextEditingController? minController,
- TextEditingController? maxController,
- List<
TextInputFormatter> ? minInputFormatters, - List<
TextInputFormatter> ? maxInputFormatters, - Color? backgroundColor,
- FormItemConfig? themeData,
Implementation
RangeInputFormItem(
{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.hintMin,
this.hintMax,
this.minUnit,
this.maxUnit,
this.leftMaxCount,
this.rightMaxCount,
this.inputType,
this.onMinChanged,
this.onMaxChanged,
this.minController,
this.maxController,
this.minInputFormatters,
this.maxInputFormatters,
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));
}