GeneralFormItem constructor
GeneralFormItem({
- Key? key,
- String? label,
- String title = "",
- Widget? titleWidget,
- String? subTitle,
- Widget? subTitleWidget,
- String? tipLabel,
- String prefixIconType = PrefixIconType.normal,
- String error = "",
- bool isEdit = true,
- bool isRequire = false,
- Widget? operateWidget,
- VoidCallback? onAddTap,
- VoidCallback? onRemoveTap,
- VoidCallback? onTip,
- Color? backgroundColor,
- FormItemConfig? themeData,
Implementation
GeneralFormItem({
Key? key,
this.label,
this.title = "",
this.titleWidget,
this.subTitle,
this.subTitleWidget,
this.tipLabel,
this.prefixIconType = PrefixIconType.normal,
this.error = "",
this.isEdit = true,
this.isRequire = false,
this.operateWidget,
this.onAddTap,
this.onRemoveTap,
this.onTip,
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));
}