AdaptiveDeviceInfo constructor

const AdaptiveDeviceInfo({
  1. required double screenWidth,
  2. required double screenHeight,
  3. required Orientation orientation,
  4. required double pixelRatio,
  5. required DeviceType deviceType,
  6. required ScreenSize screenSize,
  7. required Size designSize,
  8. required double statusBarHeight,
  9. required double bottomBarHeight,
  10. required double textScaleFactor,
  11. required EdgeInsets safeAreaPadding,
})

Creates device info from screen metrics.

Implementation

const AdaptiveDeviceInfo({
  required this.screenWidth,
  required this.screenHeight,
  required this.orientation,
  required this.pixelRatio,
  required this.deviceType,
  required this.screenSize,
  required this.designSize,
  required this.statusBarHeight,
  required this.bottomBarHeight,
  required this.textScaleFactor,
  required this.safeAreaPadding,
});