RadiusThemeData class
定义后代小部件的默认圆角
后代小部件使用 SpacingTheme.of(context)
获取当前的 RadiusThemeData 对象。
RadiusThemeData 的实例可以使用 RadiusThemeData.copyWith 进行自定义。
新增属性时需同时更新RadiusThemeData默认构造方法、copyWith方法、lerp方法
配置参考https://m3.material.io/styles/shape/shape-scale-tokens
- Inheritance
-
- Object
- ThemeExtension<
RadiusThemeData> - RadiusThemeData
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- large → double
-
final
- largeBorderRadius → BorderRadius
-
大号四角圆角
no setter
- largeRadius → Radius
-
大号四角圆角
no setter
- largest → double
-
final
- largestBorderRadius → BorderRadius
-
最大号四角圆角
no setter
- largestRadius → Radius
-
最大号四角圆角
no setter
- medium → double
-
final
- mediumBorderRadius → BorderRadius
-
中号四角圆角
no setter
- mediumRadius → Radius
-
中号四角圆角
no setter
- mini → double
-
final
- miniBorderRadius → BorderRadius
-
最小号四角圆角
no setter
- miniRadius → Radius
-
最小号四角圆角
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- small → double
-
final
- smallBorderRadius → BorderRadius
-
小号四角圆角
no setter
- smallRadius → Radius
-
小号四角圆角
no setter
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{double? mini, double? small, double? medium, double? large, double? largest}) → ThemeExtension< RadiusThemeData> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< RadiusThemeData> ? other, double t) → ThemeExtension<RadiusThemeData> -
Linearly interpolate with another ThemeExtension object.
override
-
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