I have been trying to generate a sort of Podium in leaderboards page, the idea is that the number one on the LeaderBoaards will have a circleAvatar with a crown on top, the other two should be a little bit down the first. One on the left, the other on the right, both with a slightly smaller CircleAvatar.
I have done it in a Row. And this is what it looks like
But this is what I want it to look like.
(edited in Photoshop)
I don’t want to hardcode any numbers, like sizes of Containers or anything of the sort. I have tried different options, with Align, Spacer, using Stack, but so far I always find some problem to get to the final result. I wonder what is the best approach here to what I want to accomplish. Is there maybe another Widget that I am not considering for this task?
I made the #2 and #3 places smaller by using Transform.scale on the CustomWidget.
2
Answers
Row needs crossAxisAlignment:
I think this solves your problem a screenshot from dart pad is attached