FxShadow mixin

Provides predefined shadow configurations for Flutter widgets.

This mixin includes both traditional shadow configurations and Material 3 elevation system support. It offers directional shadows (top, right, bottom, left) and standard elevation levels.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

deep List<BoxShadow>
Provides a configuration for a deep shadow.
no setter
elevationLevel1 List<BoxShadow>
Convenience getter for Material 3 elevation level 1.
no setter
elevationLevel2 List<BoxShadow>
Convenience getter for Material 3 elevation level 2.
no setter
elevationLevel3 List<BoxShadow>
Convenience getter for Material 3 elevation level 3.
no setter
elevationLevel4 List<BoxShadow>
Convenience getter for Material 3 elevation level 4.
no setter
elevationLevel5 List<BoxShadow>
Convenience getter for Material 3 elevation level 5.
no setter
left List<BoxShadow>
Provides a configuration for a shadow pointing to the left.
no setter
leftStrong List<BoxShadow>
Provides a configuration for a stronger shadow pointing to the left.
no setter
light List<BoxShadow>
Provides a configuration for a light shadow.
no setter
medium List<BoxShadow>
Provides a configuration for a medium shadow.
no setter
none List<BoxShadow>
Provides a configuration for no shadow.
no setter
normal List<BoxShadow>
Provides a configuration for a normal shadow.
no setter
Provides a configuration for a shadow pointing to the right.
no setter
rightStrong List<BoxShadow>
Provides a configuration for a stronger shadow pointing to the right.
no setter
strong List<BoxShadow>
Provides a configuration for a strong shadow.
no setter
subtle List<BoxShadow>
Provides a configuration for a subtle shadow.
no setter
top List<BoxShadow>
Provides a configuration for a shadow pointing to the top.
no setter
topStrong List<BoxShadow>
Provides a configuration for a stronger shadow pointing to the top.
no setter

Static Methods

elevation(int level, {Color? surfaceTintColor, Color? shadowColor}) List<BoxShadow>
Creates a Material 3 elevation shadow with the specified level.
shadow({Color? color, double? blurRadius, Offset? offset, double? spreadRadius}) List<BoxShadow>
Creates a custom single shadow.