AurisChamferBorder class
The signature Auris corner geometry: an asymmetric 45° chamfer that cuts only the top-left and bottom-right corners, leaving the top-right and bottom-left square (§spec:design-tokens "Shape", §spec:theme-layer).
This is the single place the corner rule lives. Flutter's BeveledRectangleBorder cannot express it because it bevels all four corners equally; AurisChamferBorder owns the notched-panel silhouette so "which corners are cut" is one edit, not a sweep across every theme.
The outer path is a six-vertex polygon. Starting on the top edge a cut before the top-left corner, it slants down-left to the left edge (cut below the corner), runs to the square top-right corner, down to the bottom-right where it slants in by cut on both edges, along the bottom to the square bottom-left corner, and back up to the start.
- Inheritance
-
- Object
- ShapeBorder
- OutlinedBorder
- AurisChamferBorder
Constructors
- AurisChamferBorder({double cut = 0, BorderSide side = BorderSide.none})
-
Creates a chamfered border whose top-left and bottom-right corners are cut
by
cut(the length of each 45° leg, in logical pixels).const
Properties
- cut → double
-
The length of each 45° cut leg, in logical pixels. Clamped per-rect so it
never exceeds half the shorter side.
final
- 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 setteroverride
- preferPaintInterior → bool
-
Reports whether paintInterior is implemented.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- side → BorderSide
-
The border outline's color and weight.
finalinherited
Methods
-
add(
ShapeBorder other, {bool reversed = false}) → ShapeBorder? -
Attempts to create a new object that represents the amalgamation of
thisborder and theotherborder.inherited -
copyWith(
{BorderSide? side, double? cut}) → AurisChamferBorder -
Returns a copy of this OutlinedBorder that draws its outline with the
specified
side, ifsideis non-null.override -
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.override -
lerpTo(
ShapeBorder? b, double t) → ShapeBorder? -
Linearly interpolates from
thisto another ShapeBorder (possibly of another class).override -
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.
override
-
paintInterior(
Canvas canvas, Rect rect, Paint paint, {TextDirection? textDirection}) → void -
Paint a canvas with the appropriate shape.
inherited
-
scale(
double t) → AurisChamferBorder -
Creates a copy of this border, scaled by the factor
t.override -
toString(
) → String -
A string representation of this object.
override
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.
override