ResponsiveAppBar class Null safety

An AppBar that adapts to different screen sizes.

Inheritance
Implemented types

Constructors

ResponsiveAppBar({Key? key, List<AppBarAction>? actions, double? actionSpace, bool automaticallyImplyLeading = true, Color? backgroundColor, bool? centerTitle, double? elevation, bool fitTitle = true, Widget? leading, double? maxWidth, ScreenChangePoints? screenChangePoints, Widget? title, TextStyle? titleTextStyle, double? toolbarHeight, TextStyle? toolbarTextStyle})
Define a ResponsiveAppBar widget.
const

Properties

actions List<AppBarAction>?
A list of Widgets to display in a row after the title widget.
final
actionSpace double?
Space between actions.
final
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
centerTitle bool?
Whether the title should be centered.
final
elevation double?
This property controls the size of the shadow below the app bar.
final
fitTitle bool
Scale the title according to the available space of the container.
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
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
maxWidth double?
Controls the maximum width of the content of the app bar including the title.
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
screenChangePoints ScreenChangePoints?
Change points to manage screen size.
final
title Widget?
The primary widget displayed in the app bar.
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 ResponsiveAppBar.
final
toolbarTextStyle TextStyle?
The default text style for the AppBar's leading, and actions widgets, but not its title.
final

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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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.
@nonVirtualinherited