How to let ripple enabled even when the MaterialButton is disabled?

177 Views Asked by At

Is there any way to let the ripple enabled on click action even if I disable the MaterialButton?

2

There are 2 best solutions below

0
On

You can use a boolean that, when set, determines the look and actions of the button when it is pressed.

0
On

Wrap button with cardview and set card view clickable while setting button disabled