CustomCarouselSlider class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomCarouselSlider
Constructors
-
CustomCarouselSlider({Key? key, required List<
CarouselItem> items, double height = 200, double? subHeight, double width = 400, bool autoplay = true, Curve animationCurve = Curves.ease, Duration autoplayDuration = const Duration(seconds: 3), Duration animationDuration = const Duration(milliseconds: 300), BoxShape indicatorShape = BoxShape.circle, double dotSpacing = 5.0, Color selectedDotColor = Colors.white, double selectedDotHeight = 8, double selectedDotWidth = 8, Color unselectedDotColor = const Color(0XFFACAEBA), double unselectedDotHeight = 6, double unselectedDotWidth = 6, bool showIndicator = true, bool showSubBackground = true, bool showText = true, double boxPaddingHorizontal = 10, double boxPaddingVertical = 2}) -
const
Properties
- animationCurve → Curve
-
Transition page animation timing Curve. Default is Curves.ease
final
- animationDuration → Duration
-
Duration page animation duration. Default is 300ms.
final
- autoplay → bool
-
Auto play of the slider. Default true
final
- autoplayDuration → Duration
-
Duration of the Auto play slider. Default 3 seconds
final
- boxPaddingHorizontal → double
-
double Box Padding Horizontal. Default is 10.0
final
- boxPaddingVertical → double
-
double Box Padding Vertical. Default is 2.0
final
- dotSpacing → double
-
Horizontal margin between of each dot. Default is 5.0
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of container.Default is 200
final
- indicatorShape → BoxShape
-
Shape of indicator. Default is BoxShape.circle
final
-
items
→ List<
CarouselItem> -
List<CarouselItem> item list
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDotColor → Color
-
Color of selected dot. Default is Color(0XFFACAEBA)
final
- selectedDotHeight → double
-
Height of selected dot. Default is 8
final
- selectedDotWidth → double
-
Width of selected dot. Default is 8
final
- showIndicator → bool
-
Show of indicators. Default true
final
- showSubBackground → bool
-
Show title background(Box). Default true
final
- showText → bool
-
Show all text. Default true
final
- subHeight → double?
-
Height of sub container.Default is height * .4
final
- unselectedDotColor → Color
-
Color of unselected dot. Default is Color(0XFFACAEBA)
final
- unselectedDotHeight → double
-
Height of selected dot. Default is 6
final
- unselectedDotWidth → double
-
Width of selected dot. Default is 6
final
- width → double
-
Width of container. Default is 400
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CustomCarouselSlider> -
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}) → 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