AspectRatioBuilder constructor
const
AspectRatioBuilder({})
Constructs an AspectRatioBuilder
widget with the given aspect ratio and builder function.
The aspectRatio
parameter specifies the desired aspect ratio of the child widget.
The builder
parameter is a function that builds the child widget and takes the BuildContext
, width, and height as arguments.
Implementation
const AspectRatioBuilder({
Key? key,
required this.aspectRatio,
required this.builder,
}) : super(key: key);