FxResponsive constructor
const
FxResponsive({
- required Widget mobile,
- required Widget desktop,
- Key? key,
- Widget? tablet,
- FxResponsiveBreakpoints breakpoints = const FxResponsiveBreakpoints(),
Constructs a FxResponsive
widget.
The mobile
widget is rendered for screens below the tablet breakpoint.
The desktop
widget is rendered for screens above or equal to the desktop breakpoint.
The tablet
widget, if provided, is rendered for screens between the tablet and desktop breakpoints.
breakpoints
allows customization of the width thresholds for different screen sizes.
The key
parameter is an optional key that can be used to identify and differentiate this widget.
Implementation
const FxResponsive({
required this.mobile,
required this.desktop,
super.key,
this.tablet,
this.breakpoints = const FxResponsiveBreakpoints(),
});