Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6dcb0d62
Unverified
Commit
6dcb0d62
authored
May 15, 2018
by
Hans Muller
Committed by
GitHub
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change kRadialReactionRadius from 24 to 20 (#17620)
parent
ae8586cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
constants.dart
packages/flutter/lib/src/material/constants.dart
+1
-1
checkbox_test.dart
packages/flutter/test/material/checkbox_test.dart
+15
-0
radio_test.dart
packages/flutter/test/material/radio_test.dart
+20
-0
No files found.
packages/flutter/lib/src/material/constants.dart
View file @
6dcb0d62
...
...
@@ -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
=
2
4
.0
;
const
double
kRadialReactionRadius
=
2
0
.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
);
...
...
packages/flutter/test/material/checkbox_test.dart
View file @
6dcb0d62
...
...
@@ -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
);
...
...
packages/flutter/test/material/radio_test.dart
View file @
6dcb0d62
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment