MyDottedImageViewer class

Inheritance

Constructors

MyDottedImageViewer({Key? key, required List images, BoxFit imageFit = BoxFit.cover, double selectedDotWidth = 14.0, double selectedDotHeight = 14.0, double unselectedDotWidth = 12.0, double unselectedDotHeight = 12.0, Color selectedDotColor = Colors.blue, Color unselectedDotColor = Colors.grey, double dotSpacing = 8.0, Curve dotAnimationCurve = Curves.easeInOut, Duration dotAnimationDuration = const Duration(milliseconds: 300), Duration pageTransitionDuration = const Duration(milliseconds: 300), Curve pageTransitionCurve = Curves.easeInOut, ScrollPhysics? scrollPhysics, bool autoScroll = false, Duration autoScrollInterval = const Duration(seconds: 3), Duration autoScrollAnimationDuration = const Duration(milliseconds: 300), BoxDecoration? bigIndicatorContainerDecoration, EdgeInsetsGeometry bigIndicatorContainerPadding = const EdgeInsets.all(8.0), Alignment bigIndicatorContainerAlignment = Alignment.center, double? bigIndicatorContainerWidth, double? bigIndicatorContainerHeight, BoxDecoration? miniIndicatorContainerDecoration, EdgeInsetsGeometry miniIndicatorContainerPadding = const EdgeInsets.all(10.0), Alignment miniIndicatorContainerAlignment = Alignment.center, EdgeInsetsGeometry miniIndicatorContainerMargin = EdgeInsets.zero, double? miniIndicatorContainerWidth, double? miniIndicatorContainerHeight, bool overlayDots = false, Alignment overlayDotsAlignment = Alignment.bottomCenter, EdgeInsets overlayDotsPadding = const EdgeInsets.only(bottom: 16.0), ValueChanged<int>? onPageChanged, ValueChanged<int>? onImagePressed})
const

Properties

autoScroll → bool
final
autoScrollAnimationDuration → Duration
final
autoScrollInterval → Duration
final
bigIndicatorContainerAlignment → Alignment
final
bigIndicatorContainerDecoration → BoxDecoration?
final
bigIndicatorContainerHeight → double?
final
bigIndicatorContainerPadding → EdgeInsetsGeometry
final
bigIndicatorContainerWidth → double?
final
dotAnimationCurve → Curve
final
dotAnimationDuration → Duration
final
dotSpacing → double
final
hashCode → int
The hash code for this object.
no setterinherited
imageFit → BoxFit
The BoxFit for the image.
final
images → List
A list of images which can be:
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
miniIndicatorContainerAlignment → Alignment
final
miniIndicatorContainerDecoration → BoxDecoration?
final
miniIndicatorContainerHeight → double?
final
miniIndicatorContainerMargin → EdgeInsetsGeometry
final
miniIndicatorContainerPadding → EdgeInsetsGeometry
final
miniIndicatorContainerWidth → double?
final
onImagePressed → ValueChanged<int>?
Called when an image is tapped, providing the tapped image index.
final
onPageChanged → ValueChanged<int>?
Called when the viewed image changes, providing the current displayed index.
final
overlayDots → bool
final
overlayDotsAlignment → Alignment
final
overlayDotsPadding → EdgeInsets
final
pageTransitionCurve → Curve
final
pageTransitionDuration → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollPhysics → ScrollPhysics?
final
selectedDotColor → Color
final
selectedDotHeight → double
final
selectedDotWidth → double
final
unselectedDotColor → Color
final
unselectedDotHeight → double
final
unselectedDotWidth → double
final

Methods

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