NesBottomSheetTheme class

Class with information regarding bottom sheets inside NesUI.

A NesBottomSheetTheme is an optional custom theme for NesUI bottom sheets, by default, flutterNesTheme will create a NesBottomSheetTheme where backgroundColor will default to ThemeData.cardColor

Inheritance

Constructors

NesBottomSheetTheme({required Color backgroundColor, required Color borderColor, EdgeInsets padding = const EdgeInsets.all(32), int? pixelSize, NesBottomSheetPainterBuilder painter = NesBottomSheetRoundedBorderPainter.new})
Class with information regarding containers inside NesUI.
const

Properties

backgroundColor Color
The background color of the container.
final
borderColor Color
The border color of the container.
final
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsets
The padding of the containers, defaults to 32 in all directions.
final
painter NesBottomSheetPainterBuilder
The builder function that creates the painter used to draw the container.
final
pixelSize int?
The pixel size of the container. When omitted, defaults to NesTheme.pixelSize.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Object
The extension's type.
no setterinherited

Methods

copyWith({Color? backgroundColor, Color? borderColor, EdgeInsets? padding, int? pixelSize, NesBottomSheetPainterBuilder? painter}) ThemeExtension<NesBottomSheetTheme>
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<NesBottomSheetTheme>? other, double t) ThemeExtension<NesBottomSheetTheme>
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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