BottomAppBarTheme class
Defines default property values for descendant BottomAppBar widgets.
Descendant widgets obtain the current BottomAppBarTheme object using
BottomAppBarTheme.of(context)
. Instances of BottomAppBarTheme can be
customized with BottomAppBarTheme.copyWith.
Typically a BottomAppBarTheme 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.
- Mixed-in types
- Annotations
Constructors
- BottomAppBarTheme({Color? color, double? elevation, NotchedShape? shape, double? height, Color? surfaceTintColor, Color? shadowColor, EdgeInsetsGeometry? padding})
-
Creates a theme that can be used for ThemeData.bottomAppBarTheme.
const
Properties
- color → Color?
-
Overrides the default value for BottomAppBar.color.
final
- elevation → double?
-
Overrides the default value for BottomAppBar.elevation.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
Overrides the default value for BottomAppBar.height.
final
- padding → EdgeInsetsGeometry?
-
Overrides the default value for BottomAppBar.padding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
Overrides the default value for BottomAppBar.shadowColor.
final
- shape → NotchedShape?
-
Overrides the default value for BottomAppBar.shape.
final
- surfaceTintColor → Color?
-
Overrides the default value for BottomAppBar.surfaceTintColor.
final
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.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
BottomAppBarTheme? a, BottomAppBarTheme? b, double t) → BottomAppBarTheme - Linearly interpolate between two BAB themes.
-
of(
BuildContext context) → BottomAppBarTheme - The ThemeData.bottomAppBarTheme property of the ambient Theme.