TopMenuBar class
An enterprise-grade navigation appbar layout component that orchestrates adaptive horizontal header areas for full-frame dashboard panels.
Built as a core presentation asset within the FlutterArtist framework, TopMenuBar automatically
coordinates responsive navigation state flips via ambient callbacks, routing mobile viewports to open
structural drawers while allowing desktop contexts to toggle vertical sidebar panels smoothly.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TopMenuBar
Constructors
- TopMenuBar({Key? key, required FaceStyle effectiveStyle, required bool isMobile, required bool isSidebarExpanded, required VoidCallback onToggleSidebar, required Widget buildTopMenuLeading({required BuildContext context, required FaceStyle effectiveStyle}), required Widget buildTopMenuCenter({required BuildContext context, required FaceStyle effectiveStyle}), required Widget buildTopMenuTrailing({required BuildContext context, required FaceStyle effectiveStyle})})
-
Constructs a standard, production-ready immutable declarative instance of TopMenuBar
with explicit structure parameters.
const
Properties
- buildTopMenuCenter → Widget Function({required BuildContext context, required FaceStyle effectiveStyle})
-
A structural layout builder filling out the centralized segment track of the header bar canvas,
commonly deployed to host search bars, workspace indicators, or tab viewports.
final
- buildTopMenuLeading → Widget Function({required BuildContext context, required FaceStyle effectiveStyle})
-
A structural layout builder compiling visual branding graphics, back buttons,
or title texts near the leading boundary of the header bar strip.
final
- buildTopMenuTrailing → Widget Function({required BuildContext context, required FaceStyle effectiveStyle})
-
A structural layout builder compiling system quick tools, profile badges, notification triggers,
or diagnostic status monitors at the absolute end boundary lane.
final
- effectiveStyle → FaceStyle
-
The global active theme token property enforcing decorative styles, background color schemes,
and custom iconography colors across header partitions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMobile → bool
-
Flags whether the hosting device conforms to a compact viewport constraints matrix,
dynamically shifting layout behavior rules and touch-first interaction scopes.
final
- isSidebarExpanded → bool
-
Dictates if the auxiliary sidebar component is currently fully extended to broad visual limits
or minimized into narrow icon-only command lanes.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onToggleSidebar → VoidCallback
-
Fires a custom programmatic execution handler callback upstream immediately upon
intercepting toggle clicks in non-mobile viewports.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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