@@ -22,7 +22,6 @@ class PlayerTrack extends StatelessWidget {
22
22
final position = context.select ((PlayerModel m) => m.position);
23
23
final setPosition = playerModel.setPosition;
24
24
final duration = context.select ((PlayerModel m) => m.duration);
25
- final color = context.select ((PlayerModel m) => m.color);
26
25
final seek = playerModel.seek;
27
26
28
27
bool sliderActive = duration != null &&
@@ -42,15 +41,9 @@ class PlayerTrack extends StatelessWidget {
42
41
minThumbSeparation: 0 ,
43
42
trackShape: superNarrow ? const RectangularSliderTrackShape () : null ,
44
43
trackHeight: superNarrow ? 4 : 2 ,
45
- inactiveTrackColor: color != null
46
- ? theme.colorScheme.onSurface.withOpacity (0.35 )
47
- : theme.colorScheme.primary.withOpacity (0.5 ),
48
- activeTrackColor: color != null
49
- ? theme.colorScheme.onSurface.withOpacity (0.8 )
50
- : theme.colorScheme.primary,
51
- overlayColor: color != null
52
- ? theme.colorScheme.onSurface
53
- : theme.colorScheme.primary,
44
+ inactiveTrackColor: theme.colorScheme.onSurface.withOpacity (0.35 ),
45
+ activeTrackColor: theme.colorScheme.onSurface.withOpacity (0.8 ),
46
+ overlayColor: theme.colorScheme.onSurface,
54
47
overlayShape: RoundSliderThumbShape (
55
48
elevation: 3 ,
56
49
enabledThumbRadius: superNarrow ? 0 : 5.0 ,
0 commit comments