ButtonPressLift extension
ElevatedButton.styleFrom lifts a button by 6 while it is pressed, even at
elevation: 0, which draws a shadow under a button that is being held.
- on
Methods
-
withoutPressLift(
) → ButtonStyle -
Available on ButtonStyle, provided by the ButtonPressLift extension
This style with the same elevation whether the button is pressed or not. A style with no elevation of its own is left for the theme to decide.