ConstrainedBox

A widget that imposes additional constraints on its child.

Example

ConstrainedBox(
  constraints: const BoxConstraints.expand(),
  child: const Card(child: Text('Hello World!')),
)

Related Links