FxResponsive constructor

const FxResponsive({
  1. required Widget mobile,
  2. required Widget desktop,
  3. Key? key,
  4. Widget? tablet,
  5. 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(),
});