ResponsiveLayoutWith<T> constructor
const
ResponsiveLayoutWith<T> ({
- Key? key,
- required 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 ResponsiveLayoutWith({
super.key,
required this.phone,
this.tablet,
this.desktop,
this.preBuilder,
this.breakpoints = const ResponsiveBreakpoints(),
this.useShortestSide = true,
this.initialParam,
this.treatLandscapePhoneAsTablet = false,
this.treatPortraitTabletAsPhone = false,
});