FabTopOffsetY mixin

Mixin for a "top" floating action button location, such as FloatingActionButtonLocation.startTop.

The adjustment, typically kMiniButtonOffsetAdjustment, is ignored in the Y axis of "top" positions. For "top" positions, the X offset is adjusted to move closer to the edge of the screen. This is so that a minified floating action button appears to align with CircleAvatars in the ListTile.leading slot of a ListTile in a ListView in the Scaffold.body.

Superclass constraints

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getOffset(ScaffoldPrelayoutGeometry scaffoldGeometry) Offset
Places the FloatingActionButton based on the Scaffold's layout.
inherited
getOffsetX(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) double
Obtains the x-offset to place the FloatingActionButton based on the Scaffold's layout.
inherited
getOffsetY(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) double
Calculates y-offset for FloatingActionButtonLocations floating over the transition between the Scaffold.appBar and the Scaffold.body.
override
isMini() bool
A function returning whether this StandardFabLocation is optimized for mini FloatingActionButtons.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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