NrbTrendCard class
A professional, interactive card used to display key metrics and their trends. Supports an optional tap event with a subtle, smooth scaling animation.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NrbTrendCard
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The overall height of the card.
final
- isTrendUp → bool
-
Determines whether the trend arrow icon points up (true) or down (false).
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainValue → String
-
The primary numerical value to display (e.g., "18,452" or "$245.8K").
final
- onTap → VoidCallback?
-
Optional callback triggered when the card is tapped.
If provided, the card will display a subtle bounce animation on press.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subText → String?
-
The context text below the trend (e.g., "vs last month"). Optional.
final
- title → String
-
The title of the metric (e.g., "Total Volume").
final
- trendColor → Color
-
The color used for the trend badge background and the arrow icon.
Defaults to a success green color.
final
- trendText → String?
-
The text inside the circular trend badge (e.g., "+12%" or "-2.1%").
If null, the trend badge and arrow icon will be hidden.
final
- width → double
-
The overall width of the card.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< NrbTrendCard> -
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, int wrapWidth = 65}) → 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