Skip to content

Commit e9e6fc7

Browse files
committed
Address feedback and update test
1 parent a4508a3 commit e9e6fc7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dev/tools/gen_defaults/lib/slider_template.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class _${blockName}DefaultsM3 extends SliderThemeData {
4444
@override
4545
// TODO(tahatesser): Update this hard-coded value to use the correct token value.
4646
// https://github.com/flutter/flutter/issues/153271
47-
Color? get inactiveTickMarkColor => _colors.primary;
47+
Color? get inactiveTickMarkColor => _colors.onSecondaryContainer;
4848
4949
@override
5050
Color? get disabledActiveTickMarkColor => _colors.${getToken("$tokenGroup.disabled.stop-indicator.color-selected")};

packages/flutter/lib/src/material/slider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ class _SliderDefaultsM3 extends SliderThemeData {
20892089
@override
20902090
// TODO(tahatesser): Update this hard-coded value to use the correct token value.
20912091
// https://github.com/flutter/flutter/issues/153271
2092-
Color? get inactiveTickMarkColor => _colors.primary;
2092+
Color? get inactiveTickMarkColor => _colors.onSecondaryContainer;
20932093

20942094
@override
20952095
Color? get disabledActiveTickMarkColor => _colors.onInverseSurface;

packages/flutter/test/material/slider_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5169,7 +5169,7 @@ void main() {
51695169
RenderBox valueIndicatorBox = tester.renderObject(find.byType(Overlay));
51705170
expect(
51715171
valueIndicatorBox,
5172-
isNot(paints..scale()..path(color: theme.colorScheme.primary)),
5172+
isNot(paints..scale()..rrect(color: theme.colorScheme.inverseSurface)),
51735173
);
51745174

51755175
// Right arrow (increase)
@@ -5183,7 +5183,7 @@ void main() {
51835183
valueIndicatorBox = tester.renderObject(find.byType(Overlay));
51845184
expect(
51855185
valueIndicatorBox,
5186-
paints..scale()..path(color: theme.colorScheme.primary),
5186+
paints..scale()..rrect(color: theme.colorScheme.inverseSurface),
51875187
);
51885188

51895189
// Left arrow (decrease)
@@ -5197,7 +5197,7 @@ void main() {
51975197
valueIndicatorBox = tester.renderObject(find.byType(Overlay));
51985198
expect(
51995199
valueIndicatorBox,
5200-
paints..scale()..path(color: theme.colorScheme.primary),
5200+
paints..scale()..rrect(color: theme.colorScheme.inverseSurface),
52015201
);
52025202

52035203
// Up arrow (increase)
@@ -5211,7 +5211,7 @@ void main() {
52115211
valueIndicatorBox = tester.renderObject(find.byType(Overlay));
52125212
expect(
52135213
valueIndicatorBox,
5214-
paints..scale()..path(color: theme.colorScheme.primary),
5214+
paints..scale()..rrect(color: theme.colorScheme.inverseSurface),
52155215
);
52165216

52175217
// Down arrow (decrease)
@@ -5225,7 +5225,7 @@ void main() {
52255225
valueIndicatorBox = tester.renderObject(find.byType(Overlay));
52265226
expect(
52275227
valueIndicatorBox,
5228-
paints..scale()..path(color: theme.colorScheme.primary),
5228+
paints..scale()..rrect(color: theme.colorScheme.inverseSurface),
52295229
);
52305230
}, variant: TargetPlatformVariant.desktop());
52315231
}

packages/flutter/test/material/slider_theme_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void main() {
120120
final Color thumbColor = Color(colorScheme.primary.value);
121121
final Color disabledThumbColor = colorScheme.onSurface.withOpacity(0.38);
122122
final Color activeTickMarkColor = colorScheme.secondaryContainer;
123-
final Color inactiveTickMarkColor = colorScheme.primary;
123+
final Color inactiveTickMarkColor = colorScheme.onSecondaryContainer;
124124
final Color disabledActiveTickMarkColor = colorScheme.onInverseSurface;
125125
final Color disabledInactiveTickMarkColor = colorScheme.onSurface;
126126
final Color stopIndicatorColor = colorScheme.primary;

0 commit comments

Comments
 (0)