ButtonRenderBase class abstract

Shared structural base for themed button renderers.

Factors the identical build logic shared by every theme's button renderer (children assembly, loading/disabled handling, the href-vs-button branch, interaction wiring and the loading spinner) into one place. A concrete theme renderer only supplies the value-producing members below: the root CSS class, the arrow-indicator transition, and the base/variant/size style maps.

This base lives in core and depends only on core props and interaction helpers; it must never depend on a theme package.

Inheritance

Constructors

ButtonRenderBase(ButtonProps props, {Key? key})
const

Properties

arrowTransition String
transition value applied to the trailing arrow indicator span.
no setter
cssClass String
CSS class applied to the root element (e.g. 'arcane-button').
no setter
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one component replaces another component in the tree.
finalinherited
props ButtonProps
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

baseStyles(bool isDisabled) Map<String, String>
Base layout styles for the control; receives the resolved disabled flag.
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.
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
sizeStyles(ButtonSize size) Map<String, String>
Size-specific dimension styles.
toString() String
A string representation of this object.
inherited
variantStyles(ButtonVariant variant) Map<String, String>
Variant-specific visual styles (colors, borders, shadows).

Operators

operator ==(Object other) bool
The equality operator.
inherited