FlyImage class
A generic image widget with image-specific utilities
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FlyImage
- Mixed-in types
Constructors
-
FlyImage({Key? key, String? imageUrl, String? assetPath, ImageProvider<
Object> ? imageProvider, BoxFit fit = BoxFit.cover, ValueChanged<bool> ? onLoadingStateChange, Widget? loadingWidget, Widget? errorWidget, double? width, double? height, AlignmentGeometry? alignment, FlyStyle flyStyle = const FlyStyle()})
Properties
- alignment → AlignmentGeometry?
-
final
- assetPath → String?
-
final
- copyWith → FlyImage Function(FlyStyle newStyle)
-
no setteroverride
- errorWidget → Widget?
-
final
- fit → BoxFit
-
final
- flyStyle → FlyStyle
-
no setteroverride
- hasFlexProperties → bool
-
Check if any flex properties are set
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPositionProperties → bool
-
Check if any position properties are set
no setterinherited
- height → double?
-
final
-
imageProvider
→ ImageProvider<
Object> ? -
final
- imageUrl → String?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidget → Widget?
-
final
-
onLoadingStateChange
→ ValueChanged<
bool> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
final
Methods
-
applyFlex(
BuildContext context, Widget child) → Widget -
Apply flex properties to a widget
inherited
-
applyMargin(
BuildContext context, Widget child) → Widget -
Applies margin to a widget using the resolved EdgeInsets
inherited
-
applyPadding(
BuildContext context, Widget child) → Widget -
Applies padding to a widget using the resolved EdgeInsets
inherited
-
applyPosition(
BuildContext context, Widget child) → Widget -
Apply position properties to a widget
inherited
-
applyRounded(
BuildContext context, Widget child) → Widget -
Applies rounded styling to a widget using the resolved BorderRadius
inherited
-
applySize(
BuildContext context, Widget child) → Widget -
Applies size constraints to a widget using the resolved values
inherited
-
basis(
String value) → FlyImage -
Set flex basis - accepts String ('s32', 's40', 's48', etc.)
This method can be chained with other flex methods, with later calls overriding earlier ones
inherited
-
bottom(
dynamic value) → FlyImage -
Set bottom position - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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
-
flex(
dynamic value) → FlyImage -
Set flex value - accepts int (1-12) or String ('auto', 'initial', 'none')
This method can be chained with other flex methods, with later calls overriding earlier ones
inherited
-
getDefaultStyle(
FlyStyle incomingStyle) → FlyStyle - Override this to provide component-specific default styles
-
grow(
int value) → FlyImage -
Set flex grow - accepts int (0-2)
This method can be chained with other flex methods, with later calls overriding earlier ones
inherited
-
h(
dynamic value) → FlyImage -
Set height - accepts int, double, or String (token name/unit)
inherited
-
inset(
dynamic value) → FlyImage -
Set inset (all sides) - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
insetX(
dynamic value) → FlyImage -
Set insetX (left and right) - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
insetY(
dynamic value) → FlyImage -
Set insetY (top and bottom) - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
left(
dynamic value) → FlyImage -
Set left position - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
m(
dynamic value) → FlyImage -
Set uniform margin - accepts int, double, or String (token name/unit)
inherited
-
maxH(
dynamic value) → FlyImage -
Set max height - accepts int, double, or String (token name/unit)
inherited
-
maxW(
dynamic value) → FlyImage -
Set max width - accepts int, double, or String (token name/unit)
inherited
-
mb(
dynamic value) → FlyImage -
Set bottom margin - accepts int, double, or String (token name/unit)
inherited
-
minH(
dynamic value) → FlyImage -
Set min height - accepts int, double, or String (token name/unit)
inherited
-
minW(
dynamic value) → FlyImage -
Set min width - accepts int, double, or String (token name/unit)
inherited
-
ml(
dynamic value) → FlyImage -
Set left margin - accepts int, double, or String (token name/unit)
inherited
-
mr(
dynamic value) → FlyImage -
Set right margin - accepts int, double, or String (token name/unit)
inherited
-
mt(
dynamic value) → FlyImage -
Set top margin - accepts int, double, or String (token name/unit)
inherited
-
mx(
dynamic value) → FlyImage -
Set horizontal margin (left + right) - accepts int, double, or String (token name/unit)
inherited
-
my(
dynamic value) → FlyImage -
Set vertical margin (top + bottom) - accepts int, double, or String (token name/unit)
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
object(
dynamic value) → FlyImage -
Set object fit - accepts BoxFit or String ('cover', 'contain', 'fill', 'scaleDown', 'none')
inherited
-
p(
dynamic value) → FlyImage -
Set uniform padding - accepts int, double, or String (token name/unit)
inherited
-
pb(
dynamic value) → FlyImage -
Set bottom padding - accepts int, double, or String (token name/unit)
inherited
-
pl(
dynamic value) → FlyImage -
Set left padding - accepts int, double, or String (token name/unit)
inherited
-
pr(
dynamic value) → FlyImage -
Set right padding - accepts int, double, or String (token name/unit)
inherited
-
pt(
dynamic value) → FlyImage -
Set top padding - accepts int, double, or String (token name/unit)
inherited
-
px(
dynamic value) → FlyImage -
Set horizontal padding (left + right) - accepts int, double, or String (token name/unit)
inherited
-
py(
dynamic value) → FlyImage -
Set vertical padding (top + bottom) - accepts int, double, or String (token name/unit)
inherited
-
resolveHeight(
BuildContext context) → double? -
Resolves height from FlyStyle and FlyTheme into double
inherited
-
resolveIntrinsicWidth(
) → FlyIntrinsicWidth? -
Resolves intrinsic width from FlyStyle
inherited
-
resolveMargin(
BuildContext context) → EdgeInsets -
Resolves margin from FlyStyle and FlyTheme into EdgeInsets
inherited
-
resolveMaxHeight(
BuildContext context) → double? -
Resolves max height from FlyStyle and FlyTheme into double
inherited
-
resolveMaxWidth(
BuildContext context) → double? -
Resolves max width from FlyStyle and FlyTheme into double
inherited
-
resolveMinHeight(
BuildContext context) → double? -
Resolves min height from FlyStyle and FlyTheme into double
inherited
-
resolveMinWidth(
BuildContext context) → double? -
Resolves min width from FlyStyle and FlyTheme into double
inherited
-
resolvePadding(
BuildContext context) → EdgeInsets -
Resolves padding from FlyStyle and FlyTheme into EdgeInsets
inherited
-
resolveRounded(
BuildContext context) → BorderRadius -
Resolves rounded styling from FlyStyle and FlyConfig into BorderRadius
inherited
-
resolveWidth(
BuildContext context) → double? -
Resolves width from FlyStyle and FlyTheme into double
inherited
-
right(
dynamic value) → FlyImage -
Set right position - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
rounded(
dynamic value) → FlyImage -
Set uniform rounded styling - accepts int, double, or String (token name/unit)
inherited
-
roundedB(
dynamic value) → FlyImage -
Set bottom rounded styling (bottom-left + bottom-right) - accepts int, double, or String (token name/unit)
inherited
-
roundedBl(
dynamic value) → FlyImage -
Set bottom-left rounded styling - accepts int, double, or String (token name/unit)
inherited
-
roundedBr(
dynamic value) → FlyImage -
Set bottom-right rounded styling - accepts int, double, or String (token name/unit)
inherited
-
roundedL(
dynamic value) → FlyImage -
Set left rounded styling (top-left + bottom-left) - accepts int, double, or String (token name/unit)
inherited
-
roundedR(
dynamic value) → FlyImage -
Set right rounded styling (top-right + bottom-right) - accepts int, double, or String (token name/unit)
inherited
-
roundedT(
dynamic value) → FlyImage -
Set top rounded styling (top-left + top-right) - accepts int, double, or String (token name/unit)
inherited
-
roundedTl(
dynamic value) → FlyImage -
Set top-left rounded styling - accepts int, double, or String (token name/unit)
inherited
-
roundedTr(
dynamic value) → FlyImage -
Set top-right rounded styling - accepts int, double, or String (token name/unit)
inherited
-
shrink(
int value) → FlyImage -
Set flex shrink - accepts int (0-1)
This method can be chained with other flex methods, with later calls overriding earlier ones
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
-
top(
dynamic value) → FlyImage -
Set top position - accepts int, double, or String (token name like 's2', 's4', etc.)
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → 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
-
w(
dynamic value) → FlyImage -
Set width - accepts int, double, or String (token name/unit)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited