AdaptiveAppBar class

Inheritance
Implemented types
Available extensions

Constructors

AdaptiveAppBar({ShapeBorder? shape, Widget? title, PreferredSizeWidget? bottom, Widget? leading, List<Widget>? actions, double? elevation, Widget? flexibleSpace, Color? surfaceTintColor, Color? shadowColor, Color? backgroundColor, Color? foregroundColor, AppBarIconTheme? iconTheme, AppBarIconTheme? iconDrawerTheme, AppBarIconTheme? iconEndDrawerTheme, double? titleSpacing, double toolbarOpacity = 1.0, double bottomOpacity = 1.0, bool? centerTitle, bool primary = true, double? toolbarHeight, double? leadingWidth, Clip? clipBehavior, Widget? backButton, Widget? closeButton, TextStyle? toolbarTextStyle, double? scrolledUnderElevation, bool excludeHeaderSemantics = false, bool automaticallyImplyLeading = true, ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate, Key? key})

Properties

actions List<Widget>?
A list of Widgets to display in a row after the title widget.
final
automaticallyImplyLeading bool
Controls whether we should try to imply the leading widget if null.
final
backButton Widget?
Widget representing a custom back button for the app bar.
final
backgroundColor Color?
The fill color to use for an app bar's.
final
bottom PreferredSizeWidget?
This widget appears across the bottom of the app bar.
final
bottomOpacity double
How opaque the bottom part of the app bar is.
final
builders CoreAdaptiveBuilder<Builder<ThemeData, CoreAndroidProperty?>, Builder<CupertinoThemeData, CoreIOSProperty?>>?
Builders for adapting the component based on platform and theme.
finalinherited
centerTitle bool?
Whether the title should be centered.
final
clipBehavior Clip?
The content will be clipped (or not) according to this option.
final
closeButton Widget?
Widget representing a custom close button for the app bar.
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 Widget?
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
foregroundColor Color?
The default color for Text and Icons within the app bar.
final
hashCode int
The hash code for this object.
no setterinherited
iconDrawerTheme AppBarIconTheme?
The color, opacity, size and adp Icon data, to use for the drawer icon that appear in the app
final
iconEndDrawerTheme AppBarIconTheme?
The color, opacity, size and adp Icon data, to use for the end drawer icon that appear in the app
final
iconTheme AppBarIconTheme?
The color, opacity, and size to use for all toolbar icons.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget to display before the toolbar's title.
final
leadingWidth double?
Defines the width of leading widget.
final
notificationPredicate ScrollNotificationPredicate
A check that specifies which child's ScrollNotifications should be listened to.
final
preferredSize Size
A size whose height is the sum of toolbarHeight and the bottom widget's preferred height.
final
primary bool
Whether this app bar is being displayed at the top of the screen.
final
properties CoreProperties<CoreAndroidProperty, CoreIOSProperty>?
Properties for customizing the visual and functional aspects of the adaptive component.
finalinherited
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 .
final
surfaceTintColor Color?
The color of the surface tint overlay applied to the app bar's background color to indicate elevation.
final
title Widget?
The primary widget displayed in the adp 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
toolbarHeight double?
Defines the height of the toolbar component of an AdaptiveAppBar.
final
toolbarOpacity double
How opaque the toolbar part of the app bar is.
final
toolbarTextStyle TextStyle?
The default text style for the Adp AppBar's leading, and actions widgets, but not its title.
final

Methods

android(BuildContext context, [CoreAndroidProperty? property]) AppBar
applyDisabledEffect(bool isDisabled, [double disabledOpacity = 0.5, bool? ignoringPointer]) Widget

Available on Widget, provided by the ApplyDisabledEffect extension

Wraps the current widget with an AnimatedOpacity to visually indicate whether the widget is enabled or disabled.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
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
getAdaptiveComponent(BuildContext context) Widget
inherited
hasDrawer(BuildContext context) bool
Checks whether the app bar should have a drawer based on the automaticallyImplyLeading flag and the presence of a drawer in the current AdaptiveScaffold context.
hasEndDrawer(BuildContext context) bool
Checks whether the app bar should have an end drawer based on the presence of an end drawer in the current AdaptiveScaffold context.
iOS(BuildContext context, [CoreIOSProperty? property]) AppBar
margeWith(Widget? child, [double? space = 4.0, Axis direction = Axis.horizontal]) Widget

Available on Widget, provided by the MergeToChild extension

Merges the current widget with child, separated by a SizedBox.
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
useBackButton(BuildContext context) bool
Determines whether the app bar should include a back button.

Operators

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