WidgetCarousel class
WidgetCarousel is a StatefulWidget that handles display of items
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- WidgetCarousel
Constructors
-
WidgetCarousel({required List<
Widget> items, num viewportFraction = 1.0, num initialPage = 0, double aspectRatio = 16 / 9, double? height, num realPage = 10000, bool autoPlay = false, Duration interval = const Duration(seconds: 8), bool reverse = false, Curve autoPlayCurve = Curves.fastOutSlowIn, Duration autoPlayDuration = const Duration(milliseconds: 800), required Function updateCallback, bool distortion = true, IndicatorAlign align = IndicatorAlign.bottom, EdgeInsets padding = const EdgeInsets.only(bottom: 0.0), double indicatorWidth = 6, Color indicatorBackColor = Colors.white, Color indicatorColor = Colors.black})
Properties
- align → IndicatorAlign
-
final
- aspectRatio → double
-
final
- autoPlay → bool
-
final
- autoPlayCurve → Curve
-
final
- autoPlayDuration → Duration
-
final
- distortion → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- indicatorBackColor → Color
-
final
- indicatorColor → Color
-
final
- indicatorWidth → double
-
final
- initialPage → num
-
final
- interval → Duration
-
final
-
items
→ List<
Widget> -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- padding → EdgeInsets
-
final
- pageController → PageController?
-
final
- realPage → num
-
final
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateCallback → Function
-
final
- viewportFraction → num
-
items --- List of widgets to be looped through
final
Methods
-
animateToPage(
int page, {Duration? duration, Curve? curve}) → dynamic -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _WidgetCarouselState -
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
-
jumpToPage(
int page) → dynamic -
nextPage(
{Duration? duration, Curve? curve}) → dynamic - nextPage function to display next widget
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousPage(
{Duration? duration, Curve? curve}) → dynamic - previousPage function to display previous widget
-
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