SafaehContentAlignedFabLocation class
Positions the scaffold FAB beside a content band on wide layouts.
Placement follows textDirection: end of the band (right in LTR, left in RTL). Hosts decide when to fall back to FloatingActionButtonLocation.endFloat — see resolve.
- Inheritance
-
- Object
- FloatingActionButtonLocation
- SafaehContentAlignedFabLocation
Constructors
- SafaehContentAlignedFabLocation({required double leftOffset, required double bandWidth, required TextDirection textDirection})
-
const
Properties
- bandWidth → double
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- leftOffset → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textDirection → TextDirection
-
final
Methods
-
getOffset(
ScaffoldPrelayoutGeometry geometry) → Offset -
Places the FloatingActionButton based on the Scaffold's layout.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
of(
BuildContext context, {required double contentAreaWidth, FloatingActionButtonLocation narrowFallback = FloatingActionButtonLocation.endFloat}) → FloatingActionButtonLocation - Resolve a location from the scaffold's content-area width.
-
resolve(
{required double leftOffset, required double bandWidth, required double endFree, required TextDirection textDirection, FloatingActionButtonLocation narrowFallback = FloatingActionButtonLocation.endFloat}) → FloatingActionButtonLocation -
Returns an aligned location, or
narrowFallbackwhenendFreeis tight.
Constants
- margin → const double
- Gap between the band edge and the FAB.
- minGutterForAlign → const double
- Minimum free width on the end side before aligned placement is used.