Adapt class

画布尺寸计算

Constructors

Adapt()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

canvasWidth int
getter/setter pair
margin double
final
mediaQuery MediaQueryData
getter/setter pair

Static Methods

init(int? number) → dynamic
onepx() → dynamic
获取1px对应的实际尺寸
padBotH() → dynamic
底部被系统遮挡的高度(刘海屏或系统状态栏)
padTopH() → dynamic
顶部被系统遮挡的高度(刘海屏或系统状态栏)
px(dynamic number) → dynamic
px转实际尺寸
screenH() → dynamic
屏幕高度
screenW() → dynamic
屏幕宽度