I have a container in which I have set the below constraints value
constraints: BoxConstraints(maxHeight: 300),
In the container widget, It has a child whose height is set to 200 but when the app is run the height is set to 300 instead of 200.
How to solve this?