CustomImageProvider class
Constructors
-
CustomImageProvider({required List<
String> imageUrls, int initialIndex = 0})
Properties
- animationCurve ↔ Curve
-
Animation curve for the image transition (fade in after loading)
getter/setter pairinherited
- animationDuration ↔ Duration
-
Animation duration for the image transition (fade in after loading)
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageCount → int
-
Total count of images
no setter
-
imageUrls
→ List<
String> -
final
- initialIndex → int
-
Index of the initial image to display
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
errorWidgetBuilder(
BuildContext context, int index, Object error, StackTrace? stackTrace) → Widget -
Builds the error widget for the image at the specified
index.inherited -
imageBuilder(
BuildContext context, int index) → ImageProvider< Object> -
Returns the image for the given
index. -
imageWidgetBuilder(
BuildContext context, int index) → Widget -
Returns the image widget for the given
index.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
progressIndicatorWidgetBuilder(
BuildContext context, int index, {double? value}) → Widget -
Returns the progress indicator widget for the given
index. The default implementation returns a CircularProgressIndicator. Override this method to customize the progress indicator. Thevalueparameter is the progress value between 0.0 and 1.0. Ifvalueis null, the progress indicator is in indeterminate mode. Theindexparameter is the index of the image being loaded. Thecontextparameter is the build context.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited