CarouselSlider class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CarouselSlider
Constructors
-
CarouselSlider({Key? key, required List<
Widget> children, SlideTransform slideTransform = const DefaultTransform(), SlideIndicator? slideIndicator, double viewportFraction = 1, bool enableAutoSlider = false, Duration autoSliderDelay = const Duration(seconds: 5), Duration autoSliderTransitionTime = const Duration(seconds: 2), Curve autoSliderTransitionCurve = Curves.easeOutQuad, bool keepPage = true, ScrollPhysics scrollPhysics = const BouncingScrollPhysics(), Axis scrollDirection = Axis.horizontal, bool unlimitedMode = false, int initialPage = 0, ValueChanged<int> ? onSlideChanged, VoidCallback? onSlideStart, VoidCallback? onSlideEnd, CarouselSliderController? controller, Clip clipBehavior = Clip.hardEdge}) -
CarouselSlider.builder({Key? key, required CarouselSlideBuilder? slideBuilder, SlideTransform slideTransform = const DefaultTransform(), SlideIndicator? slideIndicator, required int itemCount, double viewportFraction = 1, bool enableAutoSlider = false, Duration autoSliderDelay = const Duration(seconds: 5), Duration autoSliderTransitionTime = const Duration(seconds: 2), Curve autoSliderTransitionCurve = Curves.easeOutQuad, bool keepPage = true, ScrollPhysics scrollPhysics = const BouncingScrollPhysics(), Axis scrollDirection = Axis.horizontal, bool unlimitedMode = false, int initialPage = 0, ValueChanged<
int> ? onSlideChanged, VoidCallback? onSlideStart, VoidCallback? onSlideEnd, CarouselSliderController? controller, Clip clipBehavior = Clip.hardEdge})
Properties
- autoSliderDelay → Duration
-
Waiting time before starting the auto slider
final
- autoSliderTransitionCurve → Curve
-
final
- autoSliderTransitionTime → Duration
-
final
-
children
→ List<
Widget> ? -
final
- clipBehavior → Clip
-
final
- controller → CarouselSliderController?
-
final
- enableAutoSlider → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialPage → int
-
final
- itemCount → int
-
final
- keepPage → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onSlideChanged
→ ValueChanged<
int> ? -
final
- onSlideEnd → VoidCallback?
-
final
- onSlideStart → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
final
- scrollPhysics → ScrollPhysics
-
final
- slideBuilder → CarouselSlideBuilder?
-
final
- slideIndicator → SlideIndicator?
-
final
- slideTransform → SlideTransform
-
final
- unlimitedMode → bool
-
final
- viewportFraction → double
-
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, 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