ResponsiveOrientationLayoutWith<T> constructor
const
ResponsiveOrientationLayoutWith<T> ({
- Key? key,
- required Widget phonePortrait(
- BuildContext context,
- T param
- Widget phoneLandscape(
- BuildContext context,
- T param
- Widget tabletPortrait(
- BuildContext context,
- T param
- Widget tabletLandscape(
- BuildContext context,
- T param
- Widget desktopPortrait(
- BuildContext context,
- T param
- Widget desktopLandscape(
- BuildContext context,
- T param
- Widget phone(
- BuildContext context,
- T param
- Widget tablet(
- BuildContext context,
- T param
- Widget desktop(
- BuildContext context,
- T param
- ResponsivePreBuilderWith<
T> ? preBuilder, - ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
- bool useShortestSide = true,
- T? initialParam,
- bool treatLandscapePhoneAsTablet = false,
- 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,
});