ResponsiveOrientationLayout constructor
const
ResponsiveOrientationLayout({
- Key? key,
- required ResponsiveOrientationLayoutBuilder phonePortrait,
- ResponsiveOrientationLayoutBuilder? phoneLandscape,
- ResponsiveOrientationLayoutBuilder? tabletPortrait,
- ResponsiveOrientationLayoutBuilder? tabletLandscape,
- ResponsiveOrientationLayoutBuilder? desktopPortrait,
- ResponsiveOrientationLayoutBuilder? desktopLandscape,
- ResponsiveLayoutBuilder? phone,
- ResponsiveLayoutBuilder? tablet,
- ResponsiveLayoutBuilder? desktop,
- ResponsivePreBuilder? preBuilder,
- ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
- bool useShortestSide = true,
- bool treatLandscapePhoneAsTablet = false,
- 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,
});