AdaptiveNavigationAppBar class

The bar displayed at the top of the app.

See also:

Use this component to create navigation appBar with platform-specific styling and behavior:

  • On macOS, ToolBar is utilized.
  • On Windows, NavigationAppBar is used.

Constructors

AdaptiveNavigationAppBar({Key? key, Widget? title, List<AdaptiveActionEntry>? actions, Widget? leading, Widget? backButton, double? toolbarHeight, TextStyle? titleTextStyle, Color? backgroundColor, double titleWidth = kTitleWidth, double leadingWidth = kLeadingWidth, bool centerTitle = false, double toolbarOpacity = 1.0, bool automaticallyImplyLeading = true})
const

Properties

actions → List<AdaptiveActionEntry>?
The list of entry actions to display in the app bar.
final
automaticallyImplyLeading → bool
Controls whether the AdaptiveNavigationAppBar should try to imply if the leading widget is null.
final
backButton → Widget?
The widget to be used as the back button in the app bar.
final
backgroundColor → Color?
The background color of the navigation app bar.
final
centerTitle → bool
Whether the title should be centered, Defaults is false.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
final
leading → Widget?
The widget at the beginning of the app bar, before title.
final
leadingWidth → double
Specifies the width of the leading of the AdaptiveNavigationAppBar.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → Widget?
The title of the adp navigation appBar .
final
titleTextStyle → TextStyle?
The default text style for the nav AppBar's title widget.
final
titleWidth → double
Specifies the width of the title in nav app bar.
final
toolbarHeight → double?
Defines the height of the toolbar component of an AppBar.
final
toolbarOpacity → double
How opaque the toolbar part of the nav app bar is.
final

Methods

canPop(BuildContext context) → bool
Determines if the current navigation stack can be popped.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMacos(BuildContext context) → ToolBar
Converts the model to its representation on the macOS platform.
toString() → String
A string representation of this object.
inherited
toWindows(BuildContext context, [PaneDisplayMode? displayMode]) → dynamic
Converts the model to its representation on the Windows platform.

Operators

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