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