SlidingCard class

THIS IS A WORK IN PROGRESS

Inheritance

Constructors

SlidingCard({double cardsGap: 12, double slimeCardBorderRadius: 25, double slidingCardWidth: 150, double visibleCardHeight: 100, double hiddenCardHeight: 100, bool animateOpacity: true, double slimeCardElevation: 1, bool showColors: true, Curve slidingAnimmationForwardCurve: Curves.elasticOut, Curve slidingAnimationReverseCurve: Curves.elasticOut, Duration slidingAnimmationDuration: const Duration(milliseconds: 800), @required SlidingCardController controller, @required Widget backCardWidget, @required Widget frontCardWidget})

Properties

animateOpacity bool
This gives a good visual effect Leave this to true for a more realistic
final
backCardWidget Widget
Widget to be displayed on the back It's hight shhall be <= height of the front card; Note that it's parent widget is a container
final
cardsGap double
The space between the 2 cards
final
controller SlidingCardController
final
frontCardWidget Widget
Widget to be displayed on the front; note that It's parent widget is a container
final
hiddenCardHeight double
height of the back card,It cannot be greater than the height of the front card
final
showColors bool
this will enable coloring of the cards use this to make sure your widgets are aligned properly
final
slidingAnimationReverseCurve Curve
The curve of the slidingAnimation when reserving it is preferable to leave it to it's default value
final
slidingAnimmationDuration Duration
The time it will take for the card to slide down and up
final
slidingAnimmationForwardCurve Curve
The curve of the slidingAnimation when expanding it is preferable to leave it to it's default value
final
slidingCardWidth double
width of the overal card
final
slimeCardBorderRadius double
Border radious of the card
final
slimeCardElevation double
The elevation of the SlimeCard
final
visibleCardHeight double
Height of the front card
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() → _SlidingCardState
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Returns 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. [...]
@nonVirtual, inherited