FFImageButton class
图片按扭
- Inheritance
Constructors
- FFImageButton({Key? key, required dynamic image, BorderRadius? borderRadius, String? notes, Function? onClick, bool? unconstrainedBox, AlignmentGeometry? alignment, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, double? width, double? heigth, })
Properties
- alignment ↔ AlignmentGeometry?
-
对齐方式
getter/setter pairinherited
- borderRadius ↔ BorderRadius?
-
图片圆角
getter/setter pair
- color ↔ Color?
-
背景颜色
getter/setter pairinherited
- decoration ↔ Decoration?
-
装饰
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- heigth ↔ double?
-
高
getter/setter pairinherited
-
隐藏组件,并清除位置,默认值为false,优先级低于hiddenKeepFrame
getter/setter pairinherited
-
隐藏组件,但保留位置,默认值为false
getter/setter pairinherited
- image ↔ dynamic
-
图片
getter/setter pair
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin ↔ EdgeInsetsGeometry?
-
外边框
getter/setter pairinherited
- 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
- 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