In the Container
widget in flutter,
What is the difference between giving it a fixed height
and width
AND providing it BoxConstraints
for the constraints
property?.
Is it either providing a width + height or constraints? Can they be both provided at the same time? What is the difference?
I also looked at the official docs which refers to the Container
widget and in there, right under the heading called Layout Behavior they mention what happens when different combinations of width and height and constraints do? (But I do not understand how they differ)