MiuixTopAppBarDefaults class
TopAppBar 默认值。对应 Kotlin TopAppBarDefaults。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
- actionIconPadding → const double
- 操作图标的末端内边距。
- collapsedHeight → const double
- 折叠状态下 TopAppBar 的高度。
- largeTitleBottomPadding → const double
- 无副标题时大标题的底部内边距。
- largeTitleFadeRate → const double
-
大标题淡出斜率。原版
TopAppBarLayout:alpha = 1 - (collapsedFraction * 3)——从折叠的第一个像素就开始淡出, 折叠 1/3 处大标题完全消失,早于小标题出现。 - 导航图标的起始内边距。
- smallTitleRevealFraction → const double
-
小标题切换可见的折叠比例阈值。原版:
collapsedFraction * 3 >= 1。 - smallTitleRisePx → const double
-
小标题出现过渡的上浮距离。原版用 folme 弹簧把
translationY从 20 动画到 0。 - smallTopAppBarCenterHeight → const double
- SmallTopAppBar 的垂直中心高度。
- subtitleBottomPadding → const double
- 副标题的底部内边距。
- titleCoverHandoff → const double
- 短页面松手时的折叠去留阈值:折叠比例达到该值则停驻在折叠态,否则重新展开。
- titlePadding → const double
- 标题水平内边距。
- titleWidthFraction → const double
- 居中标题与导航/操作之间的横向余量比例。