ResponsiveLayout constructor

const ResponsiveLayout({
  1. required Widget mobileApp(
    1. BuildContext context
    ),
  2. Key? key,
  3. Widget mobileWeb(
    1. BuildContext context
    )?,
  4. Widget tabletWeb(
    1. BuildContext context
    )?,
  5. Widget desktopWeb(
    1. BuildContext context
    )?,
  6. bool boxed = true,
  7. double? maxWidth,
  8. bool needsShadow = false,
  9. Color overflowBackgroundColor = Colors.transparent,
  10. bool isFlexible = false,
  11. bool setMinHeight = false,
})

Create responsive layout for mobile, tablet and desktop

Implementation

const ResponsiveLayout({
  required this.mobileApp,
  super.key,
  this.mobileWeb,
  this.tabletWeb,
  this.desktopWeb,
  this.boxed = true,
  this.maxWidth,
  this.needsShadow = false,
  this.overflowBackgroundColor = Colors.transparent,
  this.isFlexible = false,
  this.setMinHeight = false,
});