FormItemConfig class
描述: form 表单项主配置类
- Inheritance
-
- Object
- BaseConfig
- FormItemConfig
Constructors
- FormItemConfig({Color? backgroundColor, BaseTextStyle? titleTextStyle, BaseTextStyle? subTitleTextStyle, BaseTextStyle? errorTextStyle, BaseTextStyle? hintTextStyle, BaseTextStyle? contentTextStyle, EdgeInsets? formPadding, EdgeInsets? titlePaddingSm, EdgeInsets? titlePaddingLg, EdgeInsets? optionsMiddlePadding, EdgeInsets? subTitlePadding, EdgeInsets? errorPadding, BaseTextStyle? disableTextStyle, BaseTextStyle? tipsTextStyle, BaseTextStyle? headTitleTextStyle, BaseTextStyle? optionTextStyle, BaseTextStyle? optionSelectedTextStyle, String configId = GLOBAL_CONFIG_ID})
-
遵循全局配置
默认为
BrnDefaultConfigUtils.defaultFormItemConfig
- FormItemConfig.generatorFromConfigId(String configId)
Properties
- backgroundColor → Color
-
no setter
- commonConfig → BaseCommonConfig
-
no setterinherited
- configId → String
-
no setterinherited
- contentTextStyle → BaseTextStyle
-
no setter
- disableTextStyle → BaseTextStyle
-
no setter
- errorPadding → EdgeInsets
-
no setter
- errorTextStyle → BaseTextStyle
-
no setter
- formPadding → EdgeInsets
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headTitleTextStyle → BaseTextStyle
-
no setter
- hintTextStyle → BaseTextStyle
-
no setter
- optionSelectedTextStyle → BaseTextStyle
-
no setter
- optionsMiddlePadding → EdgeInsets
-
no setter
- optionTextStyle → BaseTextStyle
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subTitlePadding → EdgeInsets
-
no setter
- subTitleTextStyle → BaseTextStyle
-
no setter
- tipsTextStyle → BaseTextStyle
-
no setter
- titlePaddingLg → EdgeInsets
-
no setter
- titlePaddingSm → EdgeInsets
-
no setter
- titleTextStyle → BaseTextStyle
-
no setter
Methods
-
copyWith(
{Color? backgroundColor, BaseTextStyle? titleTextStyle, BaseTextStyle? subTitleTextStyle, BaseTextStyle? errorTextStyle, BaseTextStyle? hintTextStyle, BaseTextStyle? contentTextStyle, EdgeInsets? formPadding, EdgeInsets? titlePaddingSm, EdgeInsets? titlePaddingLg, EdgeInsets? optionsMiddlePadding, EdgeInsets? subTitlePadding, EdgeInsets? errorPadding, BaseTextStyle? disableTextStyle, BaseTextStyle? tipsTextStyle, BaseTextStyle? headTitleTextStyle, BaseTextStyle? optionTextStyle, BaseTextStyle? optionSelectedTextStyle}) → FormItemConfig -
initThemeConfig(
String configId, {BaseCommonConfig? currentLevelCommonConfig}) → void -
举例:
① 尝试获取最近的配置
topRadius
若配不为 null,直接使用该配置. ②topRadius
若为 null,尝试使用 全局配置中的配置 BrnFormItemConfig. ③ 如果全局配置中的配置同样为 null 则根据configId
取出全局配置。 ④ 如果没有配置configId
的全局配置,则使用 Bruno 默认的配置override -
initThemeConfigPersonal(
) → void -
当自定义组件的配置时调用
根据自定义时传入的
configId
对配置字段打平inherited -
merge(
FormItemConfig? other) → FormItemConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited