CarouselIndicator class
Main carousel indicator that supports multiple styles
This class serves as a factory for creating different indicator styles
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CarouselIndicator
Constructors
- CarouselIndicator.new({required StyleIndicator styleIndicator, Key? key, required int count, required int currentIndex, Color? activeColor, Color? inactiveColor, bool enableAnimation = true, double size = 8.0, double spacing = 8.0, double? activeSize, double? width, double? height, double? activeWidth, BorderRadius? borderRadius, double? borderWidth, double? dotHeight, double? dotWidth, double? activeDotWidth})
-
const
Properties
- activeColor → Color?
-
Color for the active indicator
finalinherited
- activeDotWidth → double?
-
Width of active dot for expandingDotIndicator
final
- activeSize → double?
-
Size of the active indicator for dotIndicator
final
- activeWidth → double?
-
Width of active indicator for barIndicator
final
- borderRadius → BorderRadius?
-
Border radius for barIndicator
final
- borderWidth → double?
-
Border width for circularIndicator
final
- count → int
-
Total number of carousel items
finalinherited
- currentIndex → int
-
Current active index
finalinherited
- dotHeight → double?
-
Height of dots for expandingDotIndicator
final
- dotWidth → double?
-
Width of dots for expandingDotIndicator
final
- enableAnimation → bool
-
Whether to enable animation when indicators change state
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Height for barIndicator
final
- inactiveColor → Color?
-
Color for inactive indicators
finalinherited
- 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
- size → double
-
Base size for indicators
final
- spacing → double
-
Spacing between indicators
final
- styleIndicator → StyleIndicator
-
The style of indicator to use
final
- width → double?
-
Width for barIndicator
final
Methods
-
build(
BuildContext context) → Widget - Describes the part of the user interface represented by this widget.
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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