MenubarRenderBase class abstract

Shared structural base for the Neon-family menubar renderers.

The Neon and Neubrutalism menubars share an identical DOM: a menubar row of trigger buttons, each opening a popover that maps menu items (separator, label, action, checkbox, radio, submenu) through the same dispatch. They differ only in the CSS class prefix and a handful of style values (the root chrome, the trigger styling, the popover/content surface, the separator, the item radius/transition and the indicator color) — all exposed as abstract members.

The ShadCN menubar carries extra data-state/data-disabled attributes, appends a disabled marker class to checkbox/radio items and styles its popovers inline, so it diverges structurally and does not extend this base.

This base lives in core and depends only on core props (and the shared icon component); it must never depend on a theme package.

Inheritance

Constructors

const

Properties

contentStyles Map<String, String>
Inline styles for an open menu's content popover.
no setter
hashCode int
The hash code for this object.
no setterinherited
indicatorColor String
color of the checkbox check / radio dot indicator.
no setter
itemBorderRadius String
border-radius applied to action/checkbox/radio/submenu items.
no setter
itemTransition String
transition applied to action/checkbox/radio/submenu items.
no setter
key Key?
Controls how one component replaces another component in the tree.
finalinherited
props MenubarProps
final
rootStyles Map<String, String>
Inline styles for the root menubar element.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorStyles Map<String, String>
Inline styles for a separator item.
no setter
themePrefix String
CSS class prefix (e.g. 'neon', 'neubrutalism').
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. Themes translate an ArcaneDecoration into their own CSS; unimplemented fields 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
toString() String
A string representation of this object.
inherited
triggerStyles(bool isOpen) Map<String, String>
Inline styles for a trigger button given its open state.

Operators

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