TxTipThemeData class
定义后代 TxTip 小部件的默认属性值。
后代小部件使用 TxTipTheme.of(context)
获取当前的 TxTipThemeData 对象。
TxTipThemeData 的实例可以使用 TxTipThemeData.copyWith 进行自定义。
默认情况下,所有 TxTipThemeData 属性均为“null”。 如果为 null,TxTip 将使用 来自 ThemeData 的值(如果它们存在),否则它将根据整体 Theme 的 colorScheme 提供自己的默认值。 有关详细信息,请参阅各个 TxTip 属性。
- Inheritance
-
- Object
- ThemeExtension<
TxTipThemeData> - TxTipThemeData
- Mixed-in types
- Annotations
Constructors
- TxTipThemeData.new({TextStyle? textStyle, Color? backgroundColor, Color? foregroundColor, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, VisualDensity? visualDensity})
-
创建可用于 ThemeData.extension<TxTipThemeData>() 的主题。
const
Properties
- backgroundColor → Color?
-
final
- borderRadius → BorderRadius?
-
final
- foregroundColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
final
- type → Object
-
The extension's type.
no setterinherited
- visualDensity → VisualDensity?
-
final
Methods
-
copyWith(
{TextStyle? textStyle, Color? backgroundColor, Color? foregroundColor, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, VisualDensity? visualDensity}) → TxTipThemeData -
创建此对象的副本,但将给定字段替换为新值。
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
covariant ThemeExtension< TxTipThemeData> ? other, double t) → ThemeExtension<TxTipThemeData> -
Linearly interpolate with another ThemeExtension object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override