AdaptiveLayout constructor

AdaptiveLayout({
  1. Key? key,
  2. Widget? smallLayout,
  3. Widget? mediumLayout,
  4. Widget? largeLayout,
  5. FormFactor? forcedFormFactor,
})

A StatelessWidget whose build method will return the widget that corresponds to the current screen width.

Implementation

AdaptiveLayout({
  Key? key,
  this.smallLayout,
  this.mediumLayout,
  this.largeLayout,
  this.forcedFormFactor,
})  : assert(!(smallLayout == null &&
          mediumLayout == null &&
          largeLayout == null)),
      super(key: key);