ComboMeterBar class

A compact, dynamic combo HUD meter (FEAT-128).

Features:

  • Capsule-shaped progress bar that heats up in color with the multiplier tier.
  • Playful squash-stretch pop (via NeonTheme.curvePop) on the multiplier badge when multiplier increases.
  • Smooth progress easing without celebration shakes when combo decays or resets.
  • Pure data-driven presentation: caller computes multiplier and progress (0.0..1.0), matching the kit's convention (e.g. ComboHeatBackground).
  • Reduced Motion: bypasses the squash-stretch pop, still animating progress and colors.
Inheritance

Constructors

ComboMeterBar({Key? key, required int multiplier, required double progress, double height = 22, double? width, Color? trackColor, bool showMultiplierBadge = true, String? semanticLabel})

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → double
Height of the meter bar.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
multiplier → int
Current combo multiplier tier (1 for base 1x, 2 for 2x, etc.).
final
progress → double
Progress toward the next multiplier level or decay bar (0.0 to 1.0).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Overrides the default Semantics announcement.
final
showMultiplierBadge → bool
Whether to render the leading "xN" multiplier badge.
final
trackColor → Color?
Custom track background color. Defaults to NeonTheme.cardAlt.
final
width → double?
Optional fixed width. If omitted, expands to fill available width.
final

Methods

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