AdaptiveText class

自适应文本

Inheritance

Constructors

AdaptiveText(String data, {TextStyle? style, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, int? id, Future<bool> onDel()?, CaseStyle? caseStyle, bool? tapToEdit})
const

Properties

caseStyle CaseStyle?
外框样式
finalinherited
child Widget
子控件
finalinherited
color Color?
finalinherited
data String
文本内容
final
hashCode int
The hash code for this object.
no setterinherited
id int?
item id
finalinherited
locale Locale?
locale
final
maxLines int?
maxLines
final
onDel → (Future<bool> Function()?)
移除回调
finalinherited
overflow TextOverflow?
overflow
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel String?
semanticsLabel
final
softWrap bool?
softWrap
final
style TextStyle?
文本样式
final
tapToEdit bool
点击进行编辑
finalinherited
textAlign TextAlign?
文本对齐方式
final
textDirection TextDirection?
textDirection
final
textScaleFactor double?
textScaleFactor
final
x double?
finalinherited
y double?
finalinherited

Methods

copyWith({String? data, int? id, Widget? child, dynamic onEdit(bool)?, Future<bool> onDel()?, TextStyle? style, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, CaseStyle? caseStyle, bool? tapToEdit}) AdaptiveText
对象拷贝
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameWith(StackBoardItem item) bool
对象比较
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited