TDTextPaddingConfig class
通过Padding自定义TDText居中算法
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- heightRate → double
-
height比率,因为设置1时,Android文字可能显示不全,默认为1.1
no setter
- paddingExtraRate → double
-
以多个汉字测量计算的平均值,Android为Pixel 4模拟器,iOS为iphone 8 plus 模拟器
no setter
- paddingRate → double
-
以多个汉字测量计算的平均值,Android为Pixel 4模拟器,iOS为iphone 8 plus 模拟器
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPadding(
String? data, double fontSize, double height) → EdgeInsetsGeometry - 获取padding
-
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
-
getDefaultConfig(
) → TDTextPaddingConfig - 获取默认配置