SheetThemeData class
Defines the visual properties of Sheet.
Descendant widgets obtain the current SheetThemeData object using
SheetTheme.of(context)
. Instances of SheetThemeData
can be customized with SheetThemeData.copyWith or SheetThemeData.merge.
- Inheritance
-
- Object
- ThemeExtension<
SheetThemeData> - SheetThemeData
- Mixed in types
- Implementers
- Annotations
Constructors
- SheetThemeData({required Curve curve, required Duration duration, required SheetStyle style, SheetStyleByVariant variantStyle = const {}, SheetStyleByVariant dangerStyle = const {}, SheetStyleByVariant warningStyle = const {}, SheetStyleByVariant successStyle = const {}, SheetStyleByVariant infoStyle = const {}})
-
Creates a theme data that can be used for SheetTheme.
const
- SheetThemeData.from([SheetThemeData? other])
- Creates a SheetThemeData from another one that probably null.
Properties
- curve → Curve
-
The curve to apply when animating the parameters of sheet widget.
final
- dangerStyle → SheetStyleByVariant
-
The
SheetStyle
to be applied to the sheet widget with danger severityfinal - duration → Duration
-
The duration over which to animate the parameters of sheet widget.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- infoStyle → SheetStyleByVariant
-
The
SheetStyle
to be applied to the sheet widget with info severityfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
severityStyle
→ Map<
SheetSeverity, SheetStyleByVariant> -
The SheetStyle to be applied to the sheet widget with severity
no setter
- style → SheetStyle
-
The SheetStyle to be applied to the sheet widget
final
- successStyle → SheetStyleByVariant
-
The
SheetStyle
to be applied to the sheet widget with success severityfinal - type → Object
-
The extension's type.
no setterinherited
- variantStyle → SheetStyleByVariant
-
The
SheetStyle
to be applied to the variant sheet widgetfinal - warningStyle → SheetStyleByVariant
-
The
SheetStyle
to be applied to the sheet widget with warning severityfinal
Methods
-
copyWith(
{Curve? curve, Duration? duration, SheetStyle? style, SheetStyleByVariant? variantStyle, SheetStyleByVariant? dangerStyle, SheetStyleByVariant? warningStyle, SheetStyleByVariant? successStyle, SheetStyleByVariant? infoStyle}) → SheetThemeData -
Creates a copy of this SheetThemeData but with
the given fields replaced with the new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
covariant ThemeExtension< SheetThemeData> ? other, double t) → SheetThemeData -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
SheetThemeData? other) → SheetThemeData - Creates a copy of this SheetThemeData but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
{SheetVariant? variant, SheetSeverity? severity}) → SheetStyle -
Return SheetStyle that depends on
variant
andseverity
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toMap(
) → Map< String, dynamic> -
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
-
defaults(
BuildContext context) → SheetThemeData - A SheetThemeData with some default values.
-
ios(
BuildContext context) → SheetThemeData - A SheetThemeData with ios default values.
-
m2(
BuildContext context) → SheetThemeData - A SheetThemeData with material 2 default values.
-
m3(
BuildContext context) → SheetThemeData - A SheetThemeData with material 3 default values.
Constants
- fallback → const SheetThemeData
- Create a SheetThemeData with some reasonable default values.