NeumorphicInnerShadowPainter class

A custom painter that draws an inner shadow to create a neumorphic effect on a widget. This painter extends the NeumorphicShapePainter to provide additional styling specific to inner shadows.

Inheritance

Constructors

NeumorphicInnerShadowPainter.new({required List<Shadow> innerShadows, required ShapeBorder shape, required double strokeWidth})
Creates a NeumorphicInnerShadowPainter.

Properties

hashCode int
The hash code for this object.
no setterinherited
innerPath Path
The inner path of the shape.
getter/setter pairinherited
innerRect Rect
The inner rectangle of the shape.
getter/setter pairinherited
innerShadows List<Shadow>
The list of inner shadows to apply to the widget.
final
outerPath Path
The outer path of the shape.
getter/setter pairinherited
outerRect Rect
The outer rectangle of the shape.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder
The shape of the Neumorphic element.
finalinherited
strokeWidth double
The width of the stroke for the shape.
finalinherited

Methods

calculateShape(Offset offset, Size size) → void
Calculates the shape of the Neumorphic element.
inherited
convertRadiusToSigma(double radius) double
Converts a radius value to a sigma value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintShadow(Canvas canvas, {Path? path}) → void
Paints the inner shadow effect on the widget.
toString() String
A string representation of this object.
inherited

Operators

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