ComShapes class

设计系统形状配置类 提供圆角体系配置与解析能力,支持全局/组件级自定义

Annotations

Constructors

ComShapes.new({required double mediumRadius, required double smallRadius, required double largeRadius, double circularRadius = 999.0, double? buttonRadius, double? cardRadius, double? dialogRadius})
const

Properties

buttonRadius double?
final
cardRadius double?
final
circularRadius double
特殊圆角:强制圆形(通常用于头像等)
final
dialogRadius double?
final
hashCode int
The hash code for this object.
no setterinherited
largeRadius double
大圆角(用于强调型组件)
final
mediumRadius double
基础圆角(用于常规组件)
final
resolvedButtonRadius double
解析按钮圆角(优先使用组件级配置)
no setter
resolvedCardRadius double
解析卡片圆角(优先使用组件级配置)
no setter
resolvedDialogRadius double
解析对话框圆角(默认使用大圆角)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallRadius double
小圆角(用于紧凑型组件)
final

Methods

copyWith({double? mediumRadius, double? smallRadius, double? largeRadius, double? buttonRadius, double? cardRadius, double? dialogRadius}) ComShapes
拷贝并覆盖配置
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

Static Methods

lerp(ComShapes a, ComShapes b, double t) ComShapes
线性插值(用于主题切换动画)

Constants

compact → const ComShapes
紧凑型配置
rounded → const ComShapes
圆角配置
standard → const ComShapes
默认配置(Material Design 标准)