ResponsiveOrientationLayout constructor

const ResponsiveOrientationLayout({
  1. Key? key,
  2. required ResponsiveOrientationLayoutBuilder phonePortrait,
  3. ResponsiveOrientationLayoutBuilder? phoneLandscape,
  4. ResponsiveOrientationLayoutBuilder? tabletPortrait,
  5. ResponsiveOrientationLayoutBuilder? tabletLandscape,
  6. ResponsiveOrientationLayoutBuilder? desktopPortrait,
  7. ResponsiveOrientationLayoutBuilder? desktopLandscape,
  8. ResponsiveLayoutBuilder? phone,
  9. ResponsiveLayoutBuilder? tablet,
  10. ResponsiveLayoutBuilder? desktop,
  11. ResponsivePreBuilder? preBuilder,
  12. ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
  13. bool useShortestSide = true,
  14. bool treatLandscapePhoneAsTablet = false,
  15. bool treatPortraitTabletAsPhone = false,
})

Implementation

const ResponsiveOrientationLayout({
  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.treatLandscapePhoneAsTablet = false,
  this.treatPortraitTabletAsPhone = false,
});