How to expand container but stop on a certain size?

Viewed 484

I have a Container that should take all available space, but not more than 500 x 500.

If I put it inside of Flexible or Expanded it will grow to take all the screen. Is there in Flutter something similar to android:maxWidth?

1 Answers
Related