diff --git a/packages/flutter/lib/src/material/constants.dart b/packages/flutter/lib/src/material/constants.dart index c4eb9725d9..526add3591 100644 --- a/packages/flutter/lib/src/material/constants.dart +++ b/packages/flutter/lib/src/material/constants.dart @@ -17,7 +17,7 @@ const double kTextTabBarHeight = 48.0; const Duration kThemeChangeDuration = const Duration(milliseconds: 200); /// The radius of a circular material ink response in logical pixels. -const double kRadialReactionRadius = 24.0; +const double kRadialReactionRadius = 20.0; /// The amount of time a circular material ink response should take to expand to its full size. const Duration kRadialReactionDuration = const Duration(milliseconds: 100); diff --git a/packages/flutter/test/material/checkbox_test.dart b/packages/flutter/test/material/checkbox_test.dart index cea2edca26..ba37c163df 100644 --- a/packages/flutter/test/material/checkbox_test.dart +++ b/packages/flutter/test/material/checkbox_test.dart @@ -15,6 +15,21 @@ void main() { debugResetSemanticsIdCounter(); }); + testWidgets('Checkbox size is 40x40', (WidgetTester tester) async { + await tester.pumpWidget( + new Material( + child: new Center( + child: new Checkbox( + value: false, + onChanged: (bool newValue) { }, + ), + ), + ), + ); + + expect(tester.getSize(find.byType(Checkbox)), const Size(40.0, 40.0)); + }); + testWidgets('CheckBox semantics', (WidgetTester tester) async { final SemanticsTester semantics = new SemanticsTester(tester); diff --git a/packages/flutter/test/material/radio_test.dart b/packages/flutter/test/material/radio_test.dart index 20c4d22719..e857d33a4d 100644 --- a/packages/flutter/test/material/radio_test.dart +++ b/packages/flutter/test/material/radio_test.dart @@ -63,6 +63,26 @@ void main() { expect(log, isEmpty); }); + testWidgets('Radio size is 40x40', (WidgetTester tester) async { + final Key key = new UniqueKey(); + + await tester.pumpWidget( + new Material( + child: new Center( + child: new Radio( + key: key, + value: 1, + groupValue: 2, + onChanged: (int newValue) { }, + ), + ), + ), + ); + + expect(tester.getSize(find.byKey(key)), const Size(40.0, 40.0)); + }); + + testWidgets('Radio semantics', (WidgetTester tester) async { final SemanticsTester semantics = new SemanticsTester(tester);