ProgressRenderBase class abstract
Shared structural base for themed linear progress-bar renderers.
Factors the identical build logic shared by themes that wrap the indicator in a track element (root container, the track wrapper, the single indicator node whose class/styles depend on the indeterminate flag, and the optional value readout) into one place. A concrete theme renderer only supplies the CSS classes and the track/indicator/value style maps.
Note: not every theme uses this skeleton — themes whose root carries the
progressbar ARIA attributes directly and render the indicator without a
track wrapper (e.g. ShadCN) do not extend this base.
This base lives in core and depends only on core props; it must never depend on a theme package.
- Inheritance
-
- Object
- Component
- StatelessComponent
- ProgressRenderBase
Constructors
- ProgressRenderBase(ProgressProps props, {Key? key})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- props → ProgressProps
-
final
- rootClass → String
-
CSS class applied to the root element (e.g.
'neon-progress').no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trackClass → String
-
CSS class applied to the track wrapper element.
no setter
- valueClass → String
-
CSS class applied to the value readout element.
no setter
-
valueStyles
→ Map<
String, String> -
Inline styles for the value readout element.
no setter
Methods
-
build(
BuildContext context) → Component -
Describes the part of the user interface represented by this component.
override
-
createElement(
) → Element -
Creates a StatelessElement to manage this component's location in the tree.
inherited
-
decorationStyles(
ArcaneDecoration? decoration) → Map< String, String> - Per-instance decoration overrides. Default: none. A theme overrides this to translate an ArcaneDecoration (elevation intent, theme-specific fields) into its own CSS. Fields a theme does not implement are ignored.
-
indicatorClasses(
bool indeterminate) → String - CSS class for the indicator element; receives the resolved indeterminate flag so themes can append their indeterminate marker.
-
indicatorStyles(
ProgressProps props, double percentage, bool indeterminate) → Map< String, String> -
Inline styles for the indicator element.
percentageis the clamped value scaled to 0..100;indeterminateselects animation vs width/transition. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRebuild(
covariant Component newComponent) → bool -
Implement this method to determine whether a rebuild can be skipped.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackStyles(
ProgressProps props) → Map< String, String> - Inline styles for the track wrapper (theme resolves height/colors).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited