NesContainerTheme class
Class with information regarding containers inside NesUI.
A NesContainerTheme is an optional custom theme for NesUI containers, by default, flutterNesTheme will create a NesContainerTheme where:
- backgroundColor is ThemeData.cardColor
- borderColor is
ThemeData.textTheme.labelMedium.color
- labelTextStyle is
ThemeData.textTheme.labelMedium
- Inheritance
-
- Object
- ThemeExtension<
NesContainerTheme> - NesContainerTheme
Constructors
- NesContainerTheme({required Color backgroundColor, required Color borderColor, required TextStyle labelTextStyle, EdgeInsets padding = const EdgeInsets.all(32), int? pixelSize, NesContainerPainterBuilder painter = NesContainerRoundedBorderPainter.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
- labelTextStyle → TextStyle
-
The text style of the label.
final
- padding → EdgeInsets
-
The padding of the containers, defaults to 32 in all directions.
final
- painter → NesContainerPainterBuilder
-
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, TextStyle? labelTextStyle, EdgeInsets? padding, int? pixelSize, NesContainerPainterBuilder? painter}) → ThemeExtension< NesContainerTheme> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< NesContainerTheme> ? other, double t) → ThemeExtension<NesContainerTheme> -
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