AdaptiveContainer constructor

const AdaptiveContainer({
  1. Key? key,
  2. required Widget mobile,
  3. required Widget tablet,
  4. required Widget desktop,
})

Constructs an AdaptiveContainer widget with the given child widgets for different device types.

The mobile parameter is the widget to be displayed on mobile devices. The tablet parameter is the widget to be displayed on tablet devices. The desktop parameter is the widget to be displayed on desktop devices.

Implementation

const AdaptiveContainer({
  Key? key,
  required this.mobile,
  required this.tablet,
  required this.desktop,
}) : super(key: key);