ResponsiveLayout constructor

const ResponsiveLayout({
  1. Key? key,
  2. required Widget mobile,
  3. Widget? tablet,
  4. Widget? desktop,
  5. double? mobileBreakpoint,
  6. double? tabletBreakpoint,
})

Creates a responsive layout widget

The mobile parameter is required as it serves as the fallback layout. If tablet is null, the mobile layout will be used for tablet screens. If desktop is null, the tablet layout will be used for desktop screens, or the mobile layout if tablet is also null.

Implementation

const ResponsiveLayout({
  super.key,
  required this.mobile,
  this.tablet,
  this.desktop,
  this.mobileBreakpoint,
  this.tabletBreakpoint,
});