Support setting the elevation of disabled floating action buttons (#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).
This commit is contained in:
Ian Hickson
2019-01-15 15:06:29 -08:00
committed by GitHub
parent d7458e3da4
commit 29928a46ed
11 changed files with 266 additions and 56 deletions

View File

@@ -1 +1 @@
034b2a540bc46375cf0c175a0fd512dcd46971e0
7e3f945a906f9f1ffdcb1edba870f4533d2c2b86