LotsStyle class final
签筒、签和展示卡的样式。
- Annotations
Constructors
- LotsStyle({LuckyFill background = const LuckyFill.color(Color(0xFFF7EBD6)), LuckyFill cylinderFill = const LuckyFill.color(Color(0xFF9E342B)), LuckyFill backFill = const LuckyFill.color(Color(0xFF592820)), LuckyFill stickFill = const LuckyFill.color(Color(0xFFEBC582)), LuckyFill cardFill = const LuckyFill.color(Color(0xFFFFF8E1)), Color textColor = const Color(0xFF4E261B), double fontSize = 18, String? fontFamily, LotsPartPainter? backgroundPainter, LotsPartPainter? cylinderBackPainter, LotsPartPainter? cylinderFrontPainter, LotsStickBodyPainter? stickPainter})
-
创建配置;列表在使用期间不可修改。
const
Properties
- backFill → LuckyFill
-
签筒后壁填充。
final
- background → LuckyFill
-
盒子背景。
final
- backgroundPainter → LotsPartPainter?
-
替代背景填充;空时沿用默认绘制,契约与示例见 LotsPartPainter。
final
- cardFill → LuckyFill
-
签文卡填充。
final
- cylinderBackPainter → LotsPartPainter?
-
替代签筒后壁填充;空时沿用默认绘制,契约见 LotsPartPainter。
final
- cylinderFill → LuckyFill
-
签筒前壁填充。
final
- cylinderFrontPainter → LotsPartPainter?
-
替代签筒前壁填充;空时沿用默认绘制,契约见 LotsPartPainter。
final
- fontFamily → String?
-
默认字体;空时使用平台默认字体。
final
- fontSize → double
-
默认字号。
final
- hashCode → int
-
与值相等性一致的哈希值。
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stickFill → LuckyFill
-
无字签填充。
final
- stickPainter → LotsStickBodyPainter?
-
替代空白签与目标签绘制;空时沿用默认绘制,契约见 LotsStickBodyPainter。
final
- textColor → Color
-
默认文字颜色。
final
Methods
-
copyWith(
{LuckyFill? background, LuckyFill? cylinderFill, LuckyFill? backFill, LuckyFill? stickFill, LuckyFill? cardFill, Color? textColor, double? fontSize, String? fontFamily, LotsPartPainter? backgroundPainter, LotsPartPainter? cylinderBackPainter, LotsPartPainter? cylinderFrontPainter, LotsStickBodyPainter? stickPainter}) → LotsStyle - 返回只替换非空参数的副本。
-
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 -
按全部字段比较值。
override