StackedCardCarousel class
A widget for creating a vertical carousel with stacked cards.
Attributes:
Input your cards in items
.
Select a type
from enum StackedCardCarouselType
:
StackedCardCarouselType.cardsStack
makes an animation that makes an effect
of stack of cards.
StackedCardCarouselType.fadeOutStack
makes an animation that makes an
effect of faded out cards as soon as they are going to be stacked.
initialOffset
is initial vertical top offset for cards.
spaceBetweenItems
is vertical space between items. Value start from top of
a first item. Choose a value that is related to your card size.
To make it responsive use MediaQuery.of(context).size.height
* percentage.
applyTextScaleFactor
if set to true scales up space and position linearly
according to text scale factor. Scaling down is not included.
pageController
ise it for your custom page controller.
onPageChanged
listen to page index changes.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- StackedCardCarousel
Constructors
-
StackedCardCarousel({required List<
Widget> items, StackedCardCarouselType type = StackedCardCarouselType.cardsStack, double initialOffset = 40.0, double spaceBetweenItems = 400, bool applyTextScaleFactor = true, PageController? pageController, OnPageChanged? onPageChanged})
Properties
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _StackedCardCarouselState -
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