BottomAppBarTheme class

Defines default property values for descendant BottomAppBar widgets.

Descendant widgets obtain the current BottomAppBarThemeData object using BottomAppBarTheme.of. Instances of BottomAppBarThemeData can be customized with BottomAppBarThemeData.copyWith.

Typically a BottomAppBarThemeData is specified as part of the overall Theme with ThemeData.bottomAppBarTheme.

All BottomAppBarTheme properties are null by default. When null, the BottomAppBar constructor provides defaults.

See also:

  • ThemeData, which describes the overall theme information for the application.
Inheritance
Mixed-in types
Annotations

Constructors

BottomAppBarTheme({Key? key, Color? color, double? elevation, NotchedShape? shape, double? height, Color? surfaceTintColor, Color? shadowColor, EdgeInsetsGeometry? padding, BottomAppBarThemeData? data, Widget? child})
Creates a theme that can be used for ThemeData.bottomAppBarTheme.
const

Properties

child → Widget
The widget below this widget in the tree.
finalinherited
color → Color?
Overrides the default value for BottomAppBar.color.
no setter
data → BottomAppBarThemeData
The properties used for all descendant BottomAppBar widgets.
no setter
elevation → double?
Overrides the default value for BottomAppBar.elevation.
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Overrides the default value for BottomAppBar.height.
no setter
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding → EdgeInsetsGeometry?
Overrides the default value for BottomAppBar.padding.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadowColor → Color?
Overrides the default value for BottomAppBar.shadowColor.
no setter
shape → NotchedShape?
Overrides the default value for BottomAppBar.shape.
no setter
surfaceTintColor → Color?
Overrides the default value for BottomAppBar.surfaceTintColor.
no setter

Methods

copyWith({Color? color, double? elevation, NotchedShape? shape, double? height, Color? surfaceTintColor, Color? shadowColor, EdgeInsetsGeometry? padding}) → BottomAppBarTheme
Creates a copy of this object but with the given fields replaced with the new values.
createElement() → InheritedElement
Inflates this configuration to a concrete instance.
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, 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 brief description of this object, usually just the runtimeType and the hashCode.
inherited
updateShouldNotify(covariant BottomAppBarTheme oldWidget) → bool
Whether the framework should notify widgets that inherit from this widget.
override
wrap(BuildContext context, Widget child) → Widget
Return a copy of this inherited theme with the specified child.
override

Operators

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

Static Methods

lerp(BottomAppBarTheme? a, BottomAppBarTheme? b, double t) → BottomAppBarTheme
Linearly interpolate between two bottom app bar themes.
of(BuildContext context) → BottomAppBarThemeData
Returns the closest BottomAppBarThemeData instance given the build context.