From 7a78741920e7f28a296bc4d10a0fbe9c2226fb5b Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Thu, 12 Apr 2018 16:11:43 -0700 Subject: [PATCH] Revert "Changing the slider thumb size." (#16541) This reverts commit 6494ab23f6a063c689441f55c3aba1b3c8e26b5b. --- packages/flutter/lib/src/material/slider_theme.dart | 2 +- packages/flutter/test/material/slider_test.dart | 10 +++++----- packages/flutter/test/material/slider_theme_test.dart | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/flutter/lib/src/material/slider_theme.dart b/packages/flutter/lib/src/material/slider_theme.dart index 6e93b709c8..cbcc03b66c 100644 --- a/packages/flutter/lib/src/material/slider_theme.dart +++ b/packages/flutter/lib/src/material/slider_theme.dart @@ -562,7 +562,7 @@ class RoundSliderThumbShape extends SliderComponentShape { /// Create a slider thumb that draws a circle. const RoundSliderThumbShape(); - static const double _thumbRadius = 10.0; + static const double _thumbRadius = 6.0; static const double _disabledThumbRadius = 4.0; @override diff --git a/packages/flutter/test/material/slider_test.dart b/packages/flutter/test/material/slider_test.dart index e86ec02bb4..bc70eed6e7 100644 --- a/packages/flutter/test/material/slider_test.dart +++ b/packages/flutter/test/material/slider_test.dart @@ -998,7 +998,7 @@ void main() { ..circle(x: 400.0, y: 16.0, radius: 1.0) ..circle(x: 591.5, y: 16.0, radius: 1.0) ..circle(x: 783.0, y: 16.0, radius: 1.0) - ..circle(x: 16.0, y: 16.0, radius: 10.0), + ..circle(x: 16.0, y: 16.0, radius: 6.0), ); gesture = await tester.startGesture(center); @@ -1015,7 +1015,7 @@ void main() { ..circle(x: 400.0, y: 16.0, radius: 1.0) ..circle(x: 591.5, y: 16.0, radius: 1.0) ..circle(x: 783.0, y: 16.0, radius: 1.0) - ..circle(x: 105.0625, y: 16.0, radius: 10.0), + ..circle(x: 105.0625, y: 16.0, radius: 6.0), ); // Reparenting in the middle of an animation should do nothing. @@ -1035,7 +1035,7 @@ void main() { ..circle(x: 400.0, y: 16.0, radius: 1.0) ..circle(x: 591.5, y: 16.0, radius: 1.0) ..circle(x: 783.0, y: 16.0, radius: 1.0) - ..circle(x: 185.5457763671875, y: 16.0, radius: 10.0), + ..circle(x: 185.5457763671875, y: 16.0, radius: 6.0), ); // Wait for animations to finish. await tester.pumpAndSettle(); @@ -1048,7 +1048,7 @@ void main() { ..circle(x: 208.5, y: 16.0, radius: 1.0) ..circle(x: 591.5, y: 16.0, radius: 1.0) ..circle(x: 783.0, y: 16.0, radius: 1.0) - ..circle(x: 400.0, y: 16.0, radius: 10.0), + ..circle(x: 400.0, y: 16.0, radius: 6.0), ); await gesture.up(); await tester.pumpAndSettle(); @@ -1060,7 +1060,7 @@ void main() { ..circle(x: 208.5, y: 16.0, radius: 1.0) ..circle(x: 591.5, y: 16.0, radius: 1.0) ..circle(x: 783.0, y: 16.0, radius: 1.0) - ..circle(x: 400.0, y: 16.0, radius: 10.0), + ..circle(x: 400.0, y: 16.0, radius: 6.0), ); } diff --git a/packages/flutter/test/material/slider_theme_test.dart b/packages/flutter/test/material/slider_theme_test.dart index 47b0c0ff1a..1c1514d1ce 100644 --- a/packages/flutter/test/material/slider_theme_test.dart +++ b/packages/flutter/test/material/slider_theme_test.dart @@ -198,7 +198,7 @@ void main() { final RenderBox sliderBox = tester.firstRenderObject(find.byType(Slider)); - expect(sliderBox, paints..circle(color: sliderTheme.thumbColor, radius: 10.0)); + expect(sliderBox, paints..circle(color: sliderTheme.thumbColor, radius: 6.0)); await tester.pumpWidget(buildApp(enabled: false)); await tester.pumpAndSettle(); // wait for disable animation @@ -213,7 +213,7 @@ void main() { ..circle(color: sliderTheme.activeTickMarkColor) ..circle(color: sliderTheme.inactiveTickMarkColor) ..circle(color: sliderTheme.inactiveTickMarkColor) - ..circle(color: sliderTheme.thumbColor, radius: 10.0)); + ..circle(color: sliderTheme.thumbColor, radius: 6.0)); await tester.pumpWidget(buildApp(divisions: 3, enabled: false)); await tester.pumpAndSettle(); // wait for disable animation