i have a card composable in which i need to draw o...
# compose
m
i have a card composable in which i need to draw outside of the parent. For that, i cannot use card because the content gets clipped, so i used a box and replicated the card. Thing missing is how do i get the icon to draw above the container ?
Screenshot 2023-02-02 at 14.17.24.png
without using a fake container 😛
i can create a inner box and apply the bg and the border there. But i want to know if there is a way to do it without this hack
s
Dunno of a way other than calling the composable after the one that you want to be behind it. But in this case that button is the content of the card, so you can’t quite do that I guess. I’d go with a box so you can call the + button after it and see if anyone else has a better idea. Like:
Copy code
Box {
  YourCustomCard() {...}
  PlusButton
}