AutoSize class Null safety
Constructors
- AutoSize()
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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 Methods
-
appBuilder(
BuildContext context, Widget? widget) → Widget -
getDevicePixelRatio(
) → double - 根据设置 的 宽度 来得到 devicePixelRatio
-
getRealSize(
double size) → double - 获取真正的大小,比如 kToolbarHeight kBottomNavigationBarHeight
-
getScreenSize(
) → Size -
getSize(
) → Size - 根据设置的宽度,来得到对应的高度
-
setStandard(
double standard, {bool isAutoTextSize = true}) → void - 如果是横屏 就以高度为基准 如果是竖屏 就以宽度为基准 是否随着系统的文字大小而改变,默认是改变