SheenBarBorder class
The full tab bar's glass as one shape: the capsule and, gap after it, the search circle as tall as the shape.
With merge above 0 a liquid neck joins them, its waist growing with merge (the iOS 26 bar while a finger presses it); at 0 they are two separate shapes. In right-to-left text the circle is on the left.
- Inheritance
-
- Object
- ShapeBorder
- SheenBarBorder
Constructors
- SheenBarBorder({double gap = SheenTabBar.gap, double merge = 0})
-
The bar shape with
gapbefore the circle and a neck ofmerge.const
Properties
- dimensions → EdgeInsetsGeometry
-
The widths of the sides of this border represented as an EdgeInsets.
no setteroverride
- gap → double
-
The space between the capsule and the circle.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- merge → double
-
How far the neck has grown, from 0 (none) to 1.
final
- preferPaintInterior → bool
-
Reports whether paintInterior is implemented.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
ShapeBorder other, {bool reversed = false}) → ShapeBorder? -
Attempts to create a new object that represents the amalgamation of
thisborder and theotherborder.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
-
hitTest(
Rect rect, Offset position, {TextDirection? textDirection}) → bool -
Tests whether the outer boundary of this border contains
position.inherited -
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
thisto 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.
override
-
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.override -
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.
override