TransparentImageButton class

Inheritance

Constructors

TransparentImageButton.assets(String imagePath, {Key? key, ImageFrameBuilder? frameBuilder, String? semanticLabel, bool excludeFromSemantics = false, double? scale, double? width, double? height, Color? color, BlendMode? colorBlendMode, BoxFit? fit, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, Rect? centerSlice, bool matchTextDirection = false, bool gaplessPlayback = false, String? package, FilterQuality filterQuality = FilterQuality.low, Function? onTapInside, Function? onTapOutside, Function? onHoverInside, Function? onHoverOutside, bool updateCursor = true, SystemMouseCursor offCursor = SystemMouseCursors.basic, SystemMouseCursor onCursor = SystemMouseCursors.click, double opacityThreshold = 0.0, bool checkTap = false})
const

Properties

alignment AlignmentGeometry
How to align the image within its bounds.
final
centerSlice Rect?
The center slice for a nine-patch image.
final
checkTap bool
Whether to check touches on a full tap (true), or onPanDown (false).
final
color Color?
If non-null, this color is blended with each image pixel using colorBlendMode.
final
colorBlendMode BlendMode?
Used to combine color with this image.
final
excludeFromSemantics bool
Whether to exclude this image from semantics.
final
filterQuality FilterQuality
Used to set the FilterQuality of the image.
final
fit BoxFit?
How to inscribe the image into the space allocated during layout.
final
frameBuilder ImageFrameBuilder?
Run against a real-world image, the previous example renders the following image.
final
gaplessPlayback bool
Whether to continue showing the old image (true), or briefly show nothing (false), when the image provider changes.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
If non-null, require the image to have this height.
final
imagePath String
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection.
final
offCursor SystemMouseCursor
Used to set the cursor type while hovering over a transparent portion of the image.
final
onCursor SystemMouseCursor
Used to set the cursor type while hovering over an opaque portion of the image.
final
onHoverInside Function?
final
onHoverOutside Function?
final
onTapInside Function?
final
onTapOutside Function?
final
opacityThreshold double
How opaque a pixel must to be before being recognized as part of the image. This is useful for images that have a partially-transparent border that shouldn't be clickable.
final
package String?
final
repeat ImageRepeat
How to paint any portions of the layout bounds not covered by the image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
final
semanticLabel String?
A Semantic description of the image.
final
updateCursor bool
Whether to show a different mouse cursor while hovering over the image (true), or prevent the cursor from changing at all while hovering over the image (false).
final
width double?
If non-null, require the image to have this width.
final

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