ResponsiveLayout constructor

ResponsiveLayout(
  1. BaseBreakpoints<Widget> breakpoints, {
  2. Axis axis = Axis.horizontal,
  3. 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);