Change kRadialReactionRadius from 24 to 20 (#17620)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user