BackdropAppBar class
A material app bar with backdrop related functionality.
It offers functionality for triggering the BackdropScaffold's functionality.
It is internally implemented using the AppBar class. What differs from the AppBar implementation is the behaviour of leading, automaticallyImplyLeading and elevation.
Usage example:
Widget build(BuildContext context) {
return MaterialApp(
title: 'Backdrop Demo',
home: BackdropScaffold(
appBar: BackdropAppBar(
title: Text("Backdrop Example"),
actions: <Widget>[
BackdropToggleButton(
icon: AnimatedIcons.list_view,
)
],
),
...
),
);
}
See also:
- AppBar, which is the plain app bar used in material apps.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BackdropAppBar
- Implemented types
Constructors
-
BackdropAppBar({Key? key, Widget? leading, bool automaticallyImplyLeading = true, Widget? title, List<
Widget> ? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation = 0.0, Color? shadowColor, ShapeBorder? shape, Color? backgroundColor, Color? foregroundColor, IconThemeData? iconTheme, IconThemeData? actionsIconTheme, bool primary = true, bool? centerTitle, bool excludeHeaderSemantics = false, double? titleSpacing, double toolbarOpacity = 1.0, double bottomOpacity = 1.0, double? toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, SystemUiOverlayStyle? systemOverlayStyle}) - Creates a backdrop app bar.
Properties
-
actions
→ List<
Widget> ? -
See AppBar.actions.
final
- actionsIconTheme → IconThemeData?
-
See AppBar.actionsIconTheme.
final
- automaticallyImplyLeading → bool
-
See AppBar.automaticallyImplyLeading.
final
- backgroundColor → Color?
-
See AppBar.backgroundColor.
final
- bottom → PreferredSizeWidget?
-
See AppBar.bottom.
final
- bottomOpacity → double
-
See AppBar.bottomOpacity.
final
- centerTitle → bool?
-
See AppBar.centerTitle.
final
- elevation → double?
-
See AppBar.elevation.
final
- excludeHeaderSemantics → bool
-
See AppBar.excludeHeaderSemantics.
final
- flexibleSpace → Widget?
-
See AppBar.flexibleSpace.
final
- foregroundColor → Color?
-
See AppBar.foregroundColor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconTheme → IconThemeData?
-
See AppBar.iconTheme.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
See AppBar.leading.
final
- leadingWidth → double?
-
See AppBar.leadingWidth.
final
- preferredSize → Size
-
See AppBar.preferredSize.
final
- primary → bool
-
See AppBar.primary.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
See AppBar.shadowColor.
final
- shape → ShapeBorder?
-
See AppBar.shape
final
- systemOverlayStyle → SystemUiOverlayStyle?
-
See AppBar.systemOverlayStyle.
final
- title → Widget?
-
The widget that should be displayed as the AppBar title.
final
- titleSpacing → double?
-
See AppBar.iconTheme.titleSpacing
final
- titleTextStyle → TextStyle?
-
See AppBar.titleTextStyle.
final
- toolbarHeight → double?
-
See AppBar.toolbarHeight.
final
- toolbarOpacity → double
-
See AppBar.toolbarOpacity.
final
- toolbarTextStyle → TextStyle?
-
See AppBar.toolbarTextStyle.
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.
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}) → 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