KgDensity class

Constructors

KgDensity.new()

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 Methods

getRealSize(double size) double
获取真正的大小,比如 kToolbarHeight kBottomNavigationBarHeight
initKgDensity({double designWidth = 375, bool isAutoTextSize = true}) → void
如果是横屏 就以高度为基准 如果是竖屏 就以宽度为基准 designWidth 就是手机宽度 是否随着系统的文字大小而改变,默认是改变
initSize({TransitionBuilder? builder}) TransitionBuilder