ResponsiveOrientationLayoutWith<T> constructor

const ResponsiveOrientationLayoutWith<T>({
  1. Key? key,
  2. required Widget phonePortrait(
    1. BuildContext context,
    2. T param
    ),
  3. Widget phoneLandscape(
    1. BuildContext context,
    2. T param
    )?,
  4. Widget tabletPortrait(
    1. BuildContext context,
    2. T param
    )?,
  5. Widget tabletLandscape(
    1. BuildContext context,
    2. T param
    )?,
  6. Widget desktopPortrait(
    1. BuildContext context,
    2. T param
    )?,
  7. Widget desktopLandscape(
    1. BuildContext context,
    2. T param
    )?,
  8. Widget phone(
    1. BuildContext context,
    2. T param
    )?,
  9. Widget tablet(
    1. BuildContext context,
    2. T param
    )?,
  10. Widget desktop(
    1. BuildContext context,
    2. T param
    )?,
  11. ResponsivePreBuilderWith<T>? preBuilder,
  12. ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
  13. bool useShortestSide = true,
  14. T? initialParam,
  15. bool treatLandscapePhoneAsTablet = false,
  16. bool treatPortraitTabletAsPhone = false,
})

Implementation

const ResponsiveOrientationLayoutWith({
  super.key,
  // Phone layouts
  required this.phonePortrait,
  this.phoneLandscape,
  // Tablet layouts
  this.tabletPortrait,
  this.tabletLandscape,
  // Desktop layouts
  this.desktopPortrait,
  this.desktopLandscape,
  // General fallbacks
  this.phone,
  this.tablet,
  this.desktop,
  this.preBuilder,
  this.breakpoints = const ResponsiveBreakpoints(),
  this.useShortestSide = true,
  this.initialParam,
  this.treatLandscapePhoneAsTablet = false,
  this.treatPortraitTabletAsPhone = false,
});