AppBarConfig class
Appbar主题配置
- Inheritance
-
- Object
- BaseConfig
- AppBarConfig
Constructors
- AppBarConfig({Color? backgroundColor, double? appBarHeight, WidgetBuilder? leadIconBuilder, BaseTextStyle? titleStyle, BaseTextStyle? actionsStyle, int? titleMaxLength, double? leftAndRightPadding, double? itemSpacing, EdgeInsets? titlePadding, double? iconSize, SystemUiOverlayStyle? systemUiOverlayStyle, bool? showDefaultBottom, String configId = GLOBAL_CONFIG_ID})
-
BrnAppBar 主题配置,遵循外部主题配置
默认为
BrnDefaultConfigUtils.defaultAppBarConfig
- AppBarConfig.dark({double? appBarHeight, int? titleMaxLength, double? leftAndRightPadding, double? itemSpacing, EdgeInsets? titlePadding, double? iconSize, String configId = GLOBAL_CONFIG_ID})
- AppBarConfig.light({double? appBarHeight, int? titleMaxLength, double? leftAndRightPadding, double? itemSpacing, EdgeInsets? titlePadding, double? iconSize, String configId = GLOBAL_CONFIG_ID})
Properties
- actionsStyle → BaseTextStyle
-
no setter
- appBarHeight → double
-
no setter
- backgroundColor → Color
-
no setter
- commonConfig → BaseCommonConfig
-
no setterinherited
- configId → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double
-
no setter
- itemSpacing → double
-
no setter
- leadIconBuilder → WidgetBuilder
-
no setter
- leftAndRightPadding → double
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDefaultBottom → bool
-
no setter
- systemOverlayStyle → SystemUiOverlayStyle
-
no setter
- titleMaxLength → int
-
no setter
- titlePadding → EdgeInsets
-
no setter
- titleStyle → BaseTextStyle
-
no setter
Methods
-
copyWith(
{Color? backgroundColor, double? appBarHeight, WidgetBuilder? leadIconBuilder, BaseTextStyle? titleStyle, BaseTextStyle? actionsStyle, int? titleMaxLength, double? leftAndRightPadding, double? itemSpacing, EdgeInsets? titlePadding, double? iconSize, SystemUiOverlayStyle? systemUiOverlayStyle, bool? showDefaultBottom}) → AppBarConfig -
initThemeConfig(
String configId, {BaseCommonConfig? currentLevelCommonConfig}) → void -
部分代码示意如下:
override
-
initThemeConfigPersonal(
) → void -
当自定义组件的配置时调用
根据自定义时传入的
configId
对配置字段打平inherited -
merge(
AppBarConfig? other) → AppBarConfig -
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