ResponsiveLayout constructor
ResponsiveLayout(
- BaseBreakpoints<
Widget> breakpoints, { - Axis axis = Axis.horizontal,
- Key? key,
Creates a Widget that chooses another Widget to display based on the screen size.
Implementation
ResponsiveLayout(
BaseBreakpoints<Widget> breakpoints, {
this.axis = Axis.horizontal,
Key? key,
}) : _breakpoints = breakpoints.map(
(widget) => widget == null ? null : (BuildContext _) => widget);