FFTextButton class

文本按扭

Inheritance

Constructors

FFTextButton({Key? key, String? text, int? maxLines, TextStyle? textStyle, double? fontSize, Color? fontColor, FontWeight? fontWeight = FontWeight.w400, double? fontLineHeight = 1.0, String? fontFamily, TextAlign? textAlign, String? notes, Function? onClick, bool? unconstrainedBox, AlignmentGeometry? alignment = Alignment.centerLeft, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, double? width, double? heigth, bool? hiddenKeepFrame, bool? hiddenClearFrame})

Properties

alignment AlignmentGeometry?
对齐方式
getter/setter pairinherited
color Color?
背景颜色
getter/setter pairinherited
decoration Decoration?
装饰
getter/setter pairinherited
fontColor Color?
文本颜色
getter/setter pair
fontFamily String?
文本字体
getter/setter pair
fontLineHeight double?
文本行高
getter/setter pair
fontSize double?
文本大小
getter/setter pair
fontWeight FontWeight?
文本字粗
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
heigth double?
getter/setter pairinherited
hiddenClearFrame bool?
隐藏组件,并清除位置,默认值为false,优先级低于hiddenKeepFrame
getter/setter pairinherited
hiddenKeepFrame bool?
隐藏组件,但保留位置,默认值为false
getter/setter pairinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
外边框
getter/setter pairinherited
maxLines int?
最大行数
getter/setter pair
minClickIntervalMill int?
重复点击最少间隔,毫秒,默认值600
getter/setter pairinherited
notes String?
注释说明
getter/setter pairinherited
onClick Function?
点击事件
getter/setter pairinherited
onLongPress ↔ dynamic Function()?
长按事件
getter/setter pairinherited
padding EdgeInsetsGeometry?
内边框
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
文本
getter/setter pair
textAlign TextAlign?
文本对齐
getter/setter pair
textStyle TextStyle?
文本样式,优先不传递该值
getter/setter pair
unconstrainedBox bool?
是否用UnconstrainedBox,默认false
getter/setter pairinherited
width double?
getter/setter pairinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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