DecorationPainter mixin
Extends functionality of standard Flutter's ShapeBorder with additional decoration.
- Superclass constraints
- Mixin applications
Properties
- backgroundGradient → Gradient?
-
A gradient to use when filling the shape.
no setter
- borderGradient → GradientBorderSide?
-
A gradient used when drawing the edge of this shape.
no setter
- child → ShapeBorder
-
ShapeBorder to which additional styling should be applied.
no setter
- clipInner → bool
-
Whether or not you should cut out the area inside the decorating shape
to create the effect of placing a shadow behind the shape.
no setter
- dimensions → EdgeInsetsGeometry
-
The widths of the sides of this border represented as an EdgeInsets.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
innerShadow
→ List<
BoxShadow> -
A list of shadows cast by the boundary of this figure into itself.
no setter
- preferPaintInterior → bool
-
Reports whether paintInterior is implemented.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadow
→ List<
BoxShadow> -
A list of shadows cast by this shape "behind" it.
no setter
Methods
-
add(
ShapeBorder other, {bool reversed = false}) → ShapeBorder? -
Attempts to create a new object that represents the amalgamation of
this
border and theother
border.inherited -
getInnerPath(
Rect rect, {TextDirection? textDirection}) → Path -
Create a Path that describes the inner edge of the border.
override
-
getOuterPath(
Rect rect, {TextDirection? textDirection}) → Path -
Create a Path that describes the outer edge of the border.
override
-
lerpFrom(
ShapeBorder? a, double t) → ShapeBorder? -
Linearly interpolates from another ShapeBorder (possibly of another
class) to
this
.inherited -
lerpTo(
ShapeBorder? b, double t) → ShapeBorder? -
Linearly interpolates from
this
to another ShapeBorder (possibly of another class).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Rect rect, {TextDirection? textDirection}) → void -
Paints the border within the given Rect on the given Canvas.
inherited
-
paintBorder2(
Canvas canvas, Rect rect, GradientBorderSide side, {TextDirection? textDirection}) → void - Paints an additional border on top of the existing one to add the ability to decorate this border.
-
paintDecoration(
Canvas canvas, Rect rect, {TextDirection? textDirection}) → void - Paints the decoration on the given Canvas.
-
paintInterior(
Canvas canvas, Rect rect, Paint paint, {TextDirection? textDirection}) → void -
Paint a canvas with the appropriate shape.
inherited
-
scale(
double t) → ShapeBorder -
Creates a copy of this border, scaled by the factor
t
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
ShapeBorder other) → ShapeBorder -
Creates a new border consisting of the two borders on either side of the
operator.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited