Unverified Commit 6dcb0d62 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Change kRadialReactionRadius from 24 to 20 (#17620)

parent ae8586cf
......@@ -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);
......
......@@ -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);
......
......@@ -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<int>(
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment