SlimyCard class

SlimyCard provides a beautiful slime-like animation of a Card that separates into two different Cards, one at the top and the other at bottom. It is possible to put any custom widget in these two separate cards, topCardWidget & bottomCardWidget.

Attributes like width of SlimyCard(width), height of Top Card(topCardHeight) & height of Bottom Card(bottomCardHeight) along with its Border Radius(borderRadius) and color(color) can be adjusted as per requirement.

If required, slime-like animation can also be removed by setting the value of expression slimeEnabled to false.

SlimyCard supports the Streams(BLoC) for providing its real-time status. For that, wrap SlimyCard in a StreamBuilder, and in its stream property, assign slimyCard.stream. Its snapshot will contain the status.

Inheritance

Constructors

SlimyCard({Color color: const Color(0xff5858FF), double width: 300, double topCardHeight: 300, double bottomCardHeight: 150, double borderRadius: 25, Widget topCardWidget, Widget bottomCardWidget, bool slimeEnabled: true})

Properties

borderRadius double
final
bottomCardHeight double
final
bottomCardWidget Widget
final
color Color
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
slimeEnabled bool
final
topCardHeight double
final
topCardWidget Widget
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _SlimyCardState
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. [...]
@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