JsonAppBarBuilderModel class

Creates a Material Design app bar.

If elevation is specified, it must be non-negative.

Typically used in the Scaffold.appBar property.

Inheritance

Constructors

JsonAppBarBuilderModel(Map<String, dynamic> args, {List<JsonWidgetData>? actions, IconThemeData? actionsIconTheme, bool automaticallyImplyLeading = true, Color? backgroundColor, JsonWidgetData? bottom, double bottomOpacity = 1.0, bool? centerTitle, Clip? clipBehavior, double? elevation, bool excludeHeaderSemantics = false, JsonWidgetData? flexibleSpace, bool forceMaterialTransparency = false, Color? foregroundColor, IconThemeData? iconTheme, JsonWidgetData? leading, double? leadingWidth, bool notificationPredicate(ScrollNotification) = defaultScrollNotificationPredicate, bool primary = true, double? scrolledUnderElevation, Color? shadowColor, ShapeBorder? shape, Color? surfaceTintColor, SystemUiOverlayStyle? systemOverlayStyle, JsonWidgetData? title, double? titleSpacing, TextStyle? titleTextStyle, double? toolbarHeight, double toolbarOpacity = 1.0, TextStyle? toolbarTextStyle})
const

Properties

actions List<JsonWidgetData>?
A list of Widgets to display in a row after the title widget.
final
actionsIconTheme IconThemeData?
The color, opacity, and size to use for the icons that appear in the app bar's actions.
final
args Map<String, dynamic>
finalinherited
automaticallyImplyLeading bool
Controls whether we should try to imply the leading widget if null.
final
backgroundColor Color?
The fill color to use for an app bar's Material.
final
bottom JsonWidgetData?
This widget appears across the bottom of the app bar.
final
bottomOpacity double
How opaque the bottom part of the app bar is.
final
centerTitle bool?
Whether the title should be centered.
final
clipBehavior Clip?
The content will be clipped (or not) according to this option.
final
elevation double?
The z-coordinate at which to place this app bar relative to its parent.
final
excludeHeaderSemantics bool
Whether the title should be wrapped with header Semantics.
final
flexibleSpace JsonWidgetData?
This widget is stacked behind the toolbar and the tab bar. Its height will be the same as the app bar's overall height.
final
forceMaterialTransparency bool
Forces the AppBar's Material widget type to be MaterialType.transparency (instead of Material's default type).
final
foregroundColor Color?
The default color for Text and Icons within the app bar.
final
hashCode int
The hash code for this object.
no setterinherited
iconTheme IconThemeData?
The color, opacity, and size to use for toolbar icons.
final
leading JsonWidgetData?
A widget to display before the toolbar's title.
final
leadingWidth double?
Defines the width of AppBar.leading widget.
final
notificationPredicate bool Function(ScrollNotification)
A check that specifies which child's ScrollNotifications should be listened to.
final
primary bool
Whether this app bar is being displayed at the top of the screen.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrolledUnderElevation double?
The elevation that will be used if this app bar has something scrolled underneath it.
final
shadowColor Color?
The color of the shadow below the app bar.
final
shape ShapeBorder?
The shape of the app bar's Material as well as its shadow.
final
surfaceTintColor Color?
The color of the surface tint overlay applied to the app bar's background color to indicate elevation.
final
systemOverlayStyle SystemUiOverlayStyle?
Specifies the style to use for the system overlays (e.g. the status bar on Android or iOS, the system navigation bar on Android).
final
title JsonWidgetData?
The primary widget displayed in the app bar.
final
titleSpacing double?
The spacing around title content on the horizontal axis. This spacing is applied even if there is no leading content or actions. If you want title to take all the space available, set this value to 0.0.
final
titleTextStyle TextStyle?
The default text style for the AppBar's title widget.
final
toolbarHeight double?
Defines the height of the toolbar component of an AppBar.
final
toolbarOpacity double
How opaque the toolbar part of the app bar is.
final
toolbarTextStyle TextStyle?
The default text style for the AppBar's leading, and actions widgets, but not its title.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
override
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonAppBarBuilderModel
maybeFromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonAppBarBuilderModel?