Screen class

Properties

bottomBarHeight double
底部安全高度
no setter
devicePixelRatio double
屏幕像素密度
no setter
hashCode int
The hash code for this object.
no setterinherited
height double
屏幕高度
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusBarHeight double
状态栏高度
no setter
textScaleFactor double
字体缩放比例
no setter
width double
屏幕宽度
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeight(num height) double
高度方向适配
setSP(num fontSize) double
字体适配
setWidth(num width) double
宽度方向适配
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Screen
no setter

Static Methods

changeDesignSize(double width, double height) → void