@@ -7,31 +7,32 @@ class SurfaceGroup implements SurfaceGroupInterface<Color> {
7
7
/// {@macro surface_group}
8
8
const SurfaceGroup ({
9
9
required this .color,
10
- required this .onColorContrastPlus ,
11
- required this .onColorContrastMinus ,
12
- required this .onColorSubtlePlus ,
13
- required this .onColorSubtleMinus ,
10
+ required this .onColorContrast ,
11
+ required this .onColorContrastDim ,
12
+ required this .onColorSubtle ,
13
+ required this .onColorSubtleDim ,
14
14
required this .containerLowest,
15
15
required this .containerLow,
16
16
required this .container,
17
17
required this .containerHigh,
18
18
required this .containerHighest,
19
+ required this .link,
19
20
});
20
21
21
22
@override
22
23
final Color color;
23
24
24
25
@override
25
- final Color onColorContrastPlus ;
26
+ final Color onColorContrast ;
26
27
27
28
@override
28
- final Color onColorContrastMinus ;
29
+ final Color onColorContrastDim ;
29
30
30
31
@override
31
- final Color onColorSubtlePlus ;
32
+ final Color onColorSubtle ;
32
33
33
34
@override
34
- final Color onColorSubtleMinus ;
35
+ final Color onColorSubtleDim ;
35
36
36
37
@override
37
38
final Color containerLowest;
@@ -48,26 +49,28 @@ class SurfaceGroup implements SurfaceGroupInterface<Color> {
48
49
@override
49
50
final Color containerHighest;
50
51
52
+ @override
53
+ final Color link;
54
+
51
55
@override
52
56
SurfaceGroup lerp (SurfaceGroup ? other, double t) {
53
57
if (other == null ) return this ;
54
58
55
59
return SurfaceGroup (
56
60
color: Color .lerp (color, other.color, t)! ,
57
- onColorContrastPlus:
58
- Color .lerp (onColorContrastPlus, other.onColorContrastPlus, t)! ,
59
- onColorContrastMinus:
60
- Color .lerp (onColorContrastMinus, other.onColorContrastMinus, t)! ,
61
- onColorSubtlePlus:
62
- Color .lerp (onColorSubtlePlus, other.onColorSubtlePlus, t)! ,
63
- onColorSubtleMinus:
64
- Color .lerp (onColorSubtleMinus, other.onColorSubtleMinus, t)! ,
61
+ onColorContrast: Color .lerp (onColorContrast, other.onColorContrast, t)! ,
62
+ onColorContrastDim:
63
+ Color .lerp (onColorContrastDim, other.onColorContrastDim, t)! ,
64
+ onColorSubtle: Color .lerp (onColorSubtle, other.onColorSubtle, t)! ,
65
+ onColorSubtleDim:
66
+ Color .lerp (onColorSubtleDim, other.onColorSubtleDim, t)! ,
65
67
containerLowest: Color .lerp (containerLowest, other.containerLowest, t)! ,
66
68
containerLow: Color .lerp (containerLow, other.containerLow, t)! ,
67
69
container: Color .lerp (container, other.container, t)! ,
68
70
containerHigh: Color .lerp (containerHigh, other.containerHigh, t)! ,
69
71
containerHighest:
70
72
Color .lerp (containerHighest, other.containerHighest, t)! ,
73
+ link: Color .lerp (link, other.link, t)! ,
71
74
);
72
75
}
73
76
}
0 commit comments