I'm trying to have different styles for the first and last items in a list, like the picture below:
Where the first card has rounded corner on the upper right and the last card has rounded corner on the lower right. I'm still figuring out how to approach this.
Is there any way to pass the location of an item in the list to the item itself so it can be applied to a different style? Or there are other better approaches?
Also, I would like to have the card to have both rounded upper and lower right corners if there's only one card present, like below: