I would like to make the following layout within a Card widget (card within Sized Box to control the height):
layout description is:
- Blue : height: same as Card’s height, width: fixed
- Green: height: fixed, width: remaining width of the card
- Purple: height: remaining height of the card, width: fixed
- Pink: height: remaining height of the card, width: remaining width of the card
Thanks in advance.
2
Answers
The code you are looking for is below
Output
This will work regardless of the height/width available (it is responsive).
Output: