BMFText class
文本
- Inheritance
-
- Object
- BMFOverlay
- BMFText
- Available extensions
Constructors
- BMFText({required String text, required BMFCoordinate position, Color? bgColor, Color? fontColor = Colors.blue, int? fontSize = 12, BMFTypeFace? typeFace, int? alignY = BMFVerticalAlign.ALIGN_CENTER_VERTICAL, int? alignX = BMFHorizontalAlign.ALIGN_CENTER_HORIZONTAL, double? rotate = 0, double? paragraphSpacing = 2, int? maxLineWidth, int? lineSpacing = 4, BMFTextAlignment? alignment = BMFTextAlignment.center, BMFTextLineBreakMode? lineBreakMode = BMFTextLineBreakMode.charWrapping, int? startLevel = 4, int? endLevel = 21, int zIndex = 0, bool visible = true, Map? customMap})
- BMFText构造方法
- BMFText.Android({required String text, required BMFCoordinate position, Color? bgColor, Color? fontColor = Colors.blue, int? fontSize = 12, BMFTypeFace? typeFace, int? alignY = BMFVerticalAlign.ALIGN_CENTER_VERTICAL, int? alignX = BMFHorizontalAlign.ALIGN_CENTER_HORIZONTAL, double? rotate = 0, int zIndex = 0, bool visible = true, Map? customMap})
- BMFText-Android构造方法
- BMFText.fromMap(Map map)
- map => BMFText
- BMFText.iOS({required String text, required BMFCoordinate position, Color? bgColor, Color? fontColor = Colors.blue, int? fontSize = 12, BMFTypeFace? typeFace, double? rotate = 0, double? paragraphSpacing = 2, int? maxLineWidth, int? lineSpacing = 4, BMFTextAlignment? alignment = BMFTextAlignment.center, BMFTextLineBreakMode? lineBreakMode = BMFTextLineBreakMode.charWrapping, int? startLevel = 4, int? endLevel = 21, int zIndex = 0, bool visible = true, Map? customMap})
- BMFText-iOS构造方法
Properties
- alignment ↔ BMFTextAlignment?
-
文字对齐方式,默认:center
getter/setter pair
- alignX ↔ int?
-
文字覆盖物水平对齐方式 ALIGN_LEFT | ALIGN_RIGHT | ALIGN_CENTER_HORIZONTAL
getter/setter pair
- alignY ↔ int?
-
文字覆盖物垂直对齐方式 ALIGN_TOP | ALIGN_BOTTOM | ALIGN_CENTER_VERTICAL
getter/setter pair
- bgColor ↔ Color?
-
背景色
getter/setter pair
- className ↔ String?
-
类名
getter/setter pairinherited
- customMap ↔ Map?
-
开发者自定义字段
getter/setter pairinherited
- endLevel ↔ int?
-
文字最大显示层级,默认21
getter/setter pair
- fontColor ↔ Color?
-
字体颜色
getter/setter pair
- fontSize ↔ int?
-
字体大小
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- Id → String
-
获取id
no setterinherited
- id → String
-
获取id since 3.2.0
no setterinherited
- lineBreakMode ↔ BMFTextLineBreakMode?
-
字符截断类型,默认:charWrapping
getter/setter pair
- lineSpacing ↔ int?
-
文字的行间距,默认:4.0f
getter/setter pair
- maxLineWidth ↔ int?
-
文字的最大行宽
getter/setter pair
- methodChannel ↔ MethodChannel
-
Available on BMFOverlay, provided by the OverlayMethodChannelExension extension
获取channelgetter/setter pair - paragraphSpacing ↔ double?
-
字符间距,默认:2.0f
getter/setter pair
- position ↔ BMFCoordinate
-
text经纬度
getter/setter pair
- rotate ↔ double?
-
旋转角度
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startLevel ↔ int?
-
文字最小显示层级, 默认4
getter/setter pair
- text ↔ String
-
文本
getter/setter pair
- typeFace ↔ BMFTypeFace?
-
typeface
getter/setter pair
- visible ↔ bool?
-
overlay是否可见
getter/setter pairinherited
- zIndex ↔ int?
-
元素的堆叠顺序
getter/setter pairinherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
model -> map
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAlign(
int alignX, int alignY) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text 文字覆盖对齐方式 -
updateAlignment(
BMFTextAlignment alignment) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新文字对齐方式 -
updateBgColor(
Color bgColor) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text背景颜色 -
updateEndLevel(
int endLevel) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新最大显示层级, -
updateFontColor(
Color fontColor) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text字体颜色 -
updateFontSize(
int fontSize) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text 字体大小 -
updateLineBreakMode(
BMFTextLineBreakMode lineBreakMode) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新字符截断类型 -
updateLineSpacing(
int lineSpacing) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新文字行间距 -
updateMaxLineWidth(
int maxLineWidth) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新文字最大行宽 -
updateParagraphSpacing(
double paragraphSpacing) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新字符间距 字体大小 -
updatePosition(
BMFCoordinate position) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text经纬度 -
updateRotate(
double rotate) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text 旋转角度 -
updateStartLevel(
int startLevel) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新最小显示层级, -
updateText(
String text) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text文本 -
updateTypeFace(
BMFTypeFace typeFace) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text typeFace -
updateVisible(
bool visible) → Future< bool> -
Available on BMFText, provided by the BMFTextUpdateExtension extension
更新Text是否显示 Android独有boolvisible 显示状态
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited