ImageNetwork class

Image Network for Flutter app (Android - Ios - Web) Flutter plugin based on the webview_flutter plugin image is the url of the image you want to display.

imageCache is ImageProvider and can be used with CachedNetworkImageProvider.(Android && Ios)

fitAndroidIos How to inscribe the image into the space allocated during layout.(Android && Ios).

fitWeb How to inscribe the image into the space allocated during layout.(Web).

height is the height the image will occupy on the page.

width is the width the image will occupy on the page.

duration is the duration milliseconds of the animation.

curve is the animation curve.

onPointer true or false to display mouse focus.

fullScreen You can choose the option (true or false) to display the image at 100% regardless of how much height or width you are using the image.

debugPrint true or false to display debug information.

onTap void function to click on the image.

borderRadius The border radius of the rounded corners. (Android - Ios - Web)

onLoading Widget for custom loading. (Android - Ios - Web)

onError Widget for custom error. (Android - Ios - Web)

Inheritance

Constructors

ImageNetwork({Key? key, required String image, required double height, required double width, int duration = 1200, Curve curve = Curves.easeIn, bool onPointer = false, BoxFit fitAndroidIos = BoxFit.cover, BoxFitWeb fitWeb = BoxFitWeb.cover, BorderRadius borderRadius = BorderRadius.zero, Widget onLoading = const CircularProgressIndicator(), Widget onError = const Icon(Icons.error), bool fullScreen = false, bool debugPrint = false, Function? onTap, ImageProvider<Object>? imageCache})
constructor
const

Properties

borderRadius BorderRadius
final
curve Curve
final
debugPrint bool
final
duration int
final
fitAndroidIos BoxFit
final
fitWeb BoxFitWeb
final
fullScreen bool
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
image String
final
imageCache ImageProvider<Object>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onError Widget
final
onLoading Widget
final
onPointer bool
final
onTap Function?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ImageNetwork>
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, 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

Operators

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