SPLayoutUtils class
Constructors
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
- appBarHeight → double
-
获得顶部导航栏AppBar的高度 56
no setter
- barHeight → double
-
其他的数值
no setter
- bottomBarHeight → double
-
底部栏高度 SafeArea下面、底部导航栏下面(ScreenUtil定义有问题,需要单独除以ratio)
no setter
-
获得底部导航栏的高度 56
no setter
- customScreenRatio → double
-
no setter
- customScreenWidth → double
-
no setter
- designSize → Size
-
no setter
- physicalSize → Size
-
屏幕物理像素
no setter
- safeAreaHeight → double
-
安全区域高度
no setter
- screenHeight → double
-
ScreenUtil要求在首页进行初始化操作
设定宽度为750,计算相应高度
以iPhone11举例
物理像素 828 * 1792
逻辑像素 414 * 896
像素比 2
no setter
- statusBarHeight → double
-
状态栏高度 SafeArea上面、顶部导航栏上面
no setter
Static Methods
-
screenSize(
) → Size - 默认 逻辑像素dp