Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Nov 26, 2018

Previously, a disabled floating action button always had zero
elevation, which looks dumb.

This also fixes the issue whereby highlightElevation was not honoured
on floating action buttons.

This also fixes an issue I found during testing whereby setState was
being called during build when onHighlightChanged fired due to
onPressed becoming null while a gesture is ongoing (which triggers an
onTapCancel synchronously during build).

@Hixie
Copy link
Contributor Author

Hixie commented Nov 26, 2018

cc @HansMuller

This will also require a golden file update but I'll wait until the tree is open and I'm ready to land before rolling the goldens repo.

@Hixie Hixie changed the title Support setting the elevation of disabled floating action buttons [H] Support setting the elevation of disabled floating action buttons Nov 26, 2018
@zoechi zoechi added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Nov 28, 2018
Hixie added a commit to flutter/goldens that referenced this pull request Dec 23, 2018
@Hixie Hixie force-pushed the fab_disabled_elevation branch from ba4c77b to 4d42e26 Compare December 23, 2018 19:43
@Hixie Hixie requested a review from HansMuller December 23, 2018 19:43
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean button?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@dnfield
Copy link
Contributor

dnfield commented Jan 9, 2019

This is blocking another PR that wants to update goldens - would it be better to revert the goldens changes for this PR, or is this close to landing?

dnfield added a commit to flutter/goldens that referenced this pull request Jan 10, 2019
@dnfield
Copy link
Contributor

dnfield commented Jan 10, 2019

(I reverted the changes for this in goldens - they'll have to be added back when this is ready)

@Hixie Hixie force-pushed the fab_disabled_elevation branch 2 times, most recently from 427c7b9 to aa90a1a Compare January 14, 2019 04:53
Hixie added a commit to flutter/goldens that referenced this pull request Jan 14, 2019
@Hixie Hixie force-pushed the fab_disabled_elevation branch from aa90a1a to ac3802d Compare January 14, 2019 04:59
Previously, a disabled floating action button always had zero
elevation, which looks dumb.

This also fixes the issue whereby highlightElevation was not honoured
on floating action buttons.

This also fixes an issue I found during testing whereby setState was
being called during build when onHighlightChanged fired due to
onPressed becoming null while a gesture is ongoing (which triggers an
onTapCancel synchronously during build).
@Hixie Hixie force-pushed the fab_disabled_elevation branch from ac3802d to 7557716 Compare January 14, 2019 05:30
@zoechi
Copy link
Contributor

zoechi commented Jan 14, 2019

Related to #227

@Hixie
Copy link
Contributor Author

Hixie commented Jan 14, 2019

This is ready and awaiting review.

Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the monumental review delay.
LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buttos => button

@Hixie Hixie merged commit 29928a4 into flutter:master Jan 15, 2019
@Hixie Hixie deleted the fab_disabled_elevation branch January 15, 2019 23:06
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
…utter#24728)

Previously, a disabled floating action button always had zero
elevation, which looks dumb.

This also fixes the issue whereby highlightElevation was not honoured
on floating action buttons.

This also fixes an issue I found during testing whereby setState was
being called during build when onHighlightChanged fired due to
onPressed becoming null while a gesture is ongoing (which triggers an
onTapCancel synchronously during build).
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants