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

Constructors

FabTopOffsetY()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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