Tash
04/26/2022, 9:30 PM1.2.0-alpha08
and one of the Card
composables that was being used earlier with onClick
and indication
as params is deprecated with this error:
This API is deprecated with the introduction a newer Card function overload that accepts an onClick()But, the newer
Card
function that accepts onClick
doesn’t offer a way to customize indication
🤔 is there any other way to customize this?Louis Pullen-Freilich [G]
04/26/2022, 9:35 PMCard
- Material components are opinionated and show ripples, it’s not something that should be able to be customized on a component like this. For example, there is no way to change the indication for a Button
- Card
is the same here now.
If you want something custom, similar to if you wanted a custom Button
with different indication, you can fork it and make the necessary changesTash
04/26/2022, 9:51 PMModifier.clickable
to the Card
overload that does not have onClick
as parameter? (Reason being, we want to move forward with the upgrade but we are blocked from creating a custom component at the moment)Louis Pullen-Freilich [G]
04/26/2022, 10:06 PMTash
04/27/2022, 12:53 AMColton Idle
04/27/2022, 12:57 AMTash
04/29/2022, 5:14 PM