DynamicCarousel class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DynamicCarousel
Constructors
-
DynamicCarousel({Key? key, double width = double.maxFinite, double height = 200, double bigItemHeight = 200, double bigItemWidth = 200, double smallItemWidth = 100, double smallItemHeight = 100, TrackBarProperties? trackBarProperties, Duration? animationDuration, Widget? onDeleteWidget, required dynamic onDelete(int), required List<
Widget> children})
Properties
- animationDuration → Duration?
-
animationDuration specifies the Duration of the carousel slider
final
- bigItemHeight → double
-
bigItemHeight defines the height of the item of the carousel in focus.
The default value is 200 pixels
final
- bigItemWidth → double
-
bigItemWidth defines the widht of the item of the carousel in focus.
The default value is 200 pixels
final
-
children
↔ List<
Widget> -
children is a list of widgets which are displayed in the carousel
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
height of the entire carousel (including height of slider). The
default height of the carousel is 200 pixels
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onDelete → dynamic Function(int)
-
onDelete is a callback triggered when the delete icon is clicked on
an item on the carousel.
final
- onDeleteWidget → Widget?
-
onDeleteWidget defines a new widget to replace the default delete icon
on the carousel item.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smallItemHeight → double
-
smallItemHeight defines the height of the shrinked carousel item.
The default value is 100 pixels
final
- smallItemWidth → double
-
smallItemWidth defines the width of the shrinked carousel item.
The default value is 100 pixels
final
- trackBarProperties → TrackBarProperties?
-
TrackBarProperties
defines the properties of the slider. The slider is only visible when the carousel contains two or more items. TheTrackBarProperties
specifies the width, height andcolor
of the slider and background trackbar.final - width → double
-
width of the entire carousel. If no value is provided, the carousel
assumes the maximum width of the parent widget
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DynamicCarousel> -
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