ScreenAdaptationUtil constructor
ScreenAdaptationUtil({})
Implementation
ScreenAdaptationUtil({
double width = 750,
double height = 1334,
this.screenWidth,
this.screenHeight,
this.orientation,
this.pixelRatio,
this.statusBarHeight,
this.bottomBarHeight,
this.textScaleFactor,
this.allowFontScaling = false,
double? landscapeWidth,
double? landscapeHeight,
}) {
if (orientation == Orientation.portrait) {
this.width = width;
this.height = height;
} else {
this.width = landscapeWidth ?? height;
this.height = landscapeHeight ?? width;
}
}