BottomSheetThemeData class
Defines default property values for BottomSheet's Material.
Descendant widgets obtain the current BottomSheetThemeData object
using Theme.of(context).bottomSheetTheme
. Instances of
BottomSheetThemeData can be customized with
BottomSheetThemeData.copyWith.
Typically a BottomSheetThemeData is specified as part of the overall Theme with ThemeData.bottomSheetTheme.
All BottomSheetThemeData properties are null
by default.
When null, the BottomSheet will provide its own defaults.
See also:
- ThemeData, which describes the overall theme information for the application.
- Mixed-in types
- Annotations
Constructors
- BottomSheetThemeData({Color? backgroundColor, Color? surfaceTintColor, double? elevation, Color? modalBackgroundColor, Color? modalBarrierColor, Color? shadowColor, double? modalElevation, ShapeBorder? shape, bool? showDragHandle, Color? dragHandleColor, Size? dragHandleSize, Clip? clipBehavior, BoxConstraints? constraints})
-
Creates a theme that can be used for ThemeData.bottomSheetTheme.
const
Properties
- backgroundColor → Color?
-
Overrides the default value for BottomSheet.backgroundColor.
final
- clipBehavior → Clip?
-
Overrides the default value for BottomSheet.clipBehavior.
final
- constraints → BoxConstraints?
-
Constrains the size of the BottomSheet.
final
- dragHandleColor → Color?
-
Overrides the default value for BottomSheet.dragHandleColor.
final
- dragHandleSize → Size?
-
Overrides the default value for BottomSheet.dragHandleSize.
final
- elevation → double?
-
Overrides the default value for BottomSheet.elevation.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- modalBackgroundColor → Color?
-
Value for BottomSheet.backgroundColor when the Bottom sheet is presented
as a modal bottom sheet.
final
- modalBarrierColor → Color?
-
Overrides the default value for barrier color when the Bottom sheet is presented as
a modal bottom sheet.
final
- modalElevation → double?
-
Value for BottomSheet.elevation when the Bottom sheet is presented as a
modal bottom sheet.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
Overrides the default value for BottomSheet.shadowColor.
final
- shape → ShapeBorder?
-
Overrides the default value for BottomSheet.shape.
final
- showDragHandle → bool?
-
Overrides the default value for BottomSheet.showDragHandle.
final
- surfaceTintColor → Color?
-
Overrides the default value for surfaceTintColor.
final
Methods
-
copyWith(
{Color? backgroundColor, Color? surfaceTintColor, double? elevation, Color? modalBackgroundColor, Color? modalBarrierColor, Color? shadowColor, double? modalElevation, ShapeBorder? shape, bool? showDragHandle, Color? dragHandleColor, Size? dragHandleSize, Clip? clipBehavior, BoxConstraints? constraints}) → BottomSheetThemeData - Creates a copy of this object 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(
BottomSheetThemeData? a, BottomSheetThemeData? b, double t) → BottomSheetThemeData? - Linearly interpolate between two bottom sheet themes.