Since the BoxConstraints already manages the animated size, I think it is better that the user handles the flex value of the widget and we keep it without flex as default. This makes it easier to use it code with unconstrained size, like in a scrollable context for example.
Another minor refactor is also included here which moves from Container to ConstrainedBox.
Since the
BoxConstraints
already manages the animated size, I think it is better that the user handles the flex value of the widget and we keep it without flex as default. This makes it easier to use it code with unconstrained size, like in a scrollable context for example.Another minor refactor is also included here which moves from
Container
toConstrainedBox
.