ConstraintBox Widget - Flutter Widget Guide By Flutter Agency

ConstraintBox Widget – Flutter Widget Guide By Flutter Agency

· 3 min read

What is ConstraintBox Widget? ConstraintBox Widget you will be able to impose additional constraints on its child widgets. For example, if you wanted a child to have a minimum height of 80.0 logical pixels, you could use const BoxConstraints(minHeight: 80.0) as the constraints. The Default constructor of ConstraintBox Widget looks like below : ConstrainedBox({ Key key,…