Repository navigation
Implements focus handling and hover for Material buttons. - #31438
Merged
Merged
Conversation
gspencergoog
force-pushed
the
material_focus
branch
3 times, most recently
from
April 26, 2019 21:09
e67ec2c to
fa09183
Compare
gspencergoog
force-pushed
the
material_focus
branch
14 times, most recently
from
May 7, 2019 00:27
eb248be to
570209c
Compare
gspencergoog
force-pushed
the
material_focus
branch
10 times, most recently
from
May 10, 2019 03:32
9984dd2 to
7cfcf63
Compare
gspencergoog
marked this pull request as ready for review
May 10, 2019 04:30
gspencergoog
force-pushed
the
material_focus
branch
2 times, most recently
from
May 10, 2019 15:58
249b5b7 to
5e6c90c
Compare
darrenaustin
approved these changes
May 10, 2019
darrenaustin
left a comment
Contributor
There was a problem hiding this comment.
Some minor comments and questions aside, LGTM.
Contributor
There was a problem hiding this comment.
What was the reason for this change?
Contributor
Author
There was a problem hiding this comment.
Because the hover support adds another frame to the animation.
Contributor
There was a problem hiding this comment.
Why was this removed?
Contributor
Author
There was a problem hiding this comment.
Actually, it doesn't need to be removed. For a while I had a bug (but didn't know it) that had the hover animation still running here. It's fixed now.
gspencergoog
force-pushed
the
material_focus
branch
2 times, most recently
from
May 11, 2019 01:47
7c85947 to
5ce66cb
Compare
gspencergoog
force-pushed
the
material_focus
branch
from
May 11, 2019 02:09
5ce66cb to
2334b5f
Compare
gspencergoog
force-pushed
the
material_focus
branch
from
May 13, 2019 23:23
0af4e29 to
4824d5c
Compare
gspencergoog
force-pushed
the
material_focus
branch
from
May 14, 2019 00:37
4824d5c to
82f83d9
Compare
gspencergoog
force-pushed
the
material_focus
branch
5 times, most recently
from
May 14, 2019 19:43
ed049c5 to
3cc0401
Compare
gspencergoog
force-pushed
the
material_focus
branch
from
May 15, 2019 00:50
3cc0401 to
396ef1d
Compare
gspencergoog
force-pushed
the
material_focus
branch
from
May 15, 2019 02:08
396ef1d to
388e9d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This implements focus and hover handling for Material buttons. It inserts
Focuswidgets into the tree in order to allow buttons to be focusable via keyboard traversal (a.k.a. TAB traversal), andListenerwidgets into theInkWellto allow the detection of hover states for widgets.Related Issues
Addresses #11344, #1608, and #13264.
Tests
I added the following tests:
InkWellMaterialButtonOutlineButton,RaisedButton, andFlatButtonChecklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?