ResponsiveBuilder constructor
const
ResponsiveBuilder({
- Key? key,
- required Widget builder(
- BuildContext context,
- BoxConstraints constraints,
- Orientation orientation
- double breakpointMobile = 600,
- double breakpointTablet = 992,
Constructs a ResponsiveBuilder
widget.
The builder
function is called to build the layout based on the device type, orientation, and constraints.
The breakpointMobile
is the maximum width at which the device is considered a mobile device.
The breakpointTablet
is the maximum width at which the device is considered a tablet device.
Implementation
const ResponsiveBuilder({
Key? key,
required this.builder,
this.breakpointMobile = 600,
this.breakpointTablet = 992,
}) : super(key: key);