FloatingActionButtonLocation class

An object that defines a position for the FloatingActionButton based on the Scaffold's ScaffoldPrelayoutGeometry.

Flutter provides FloatingActionButtonLocations for the common FloatingActionButton placements in Material Design applications. These locations are available as static members of this class.

See also:

Constructors

FloatingActionButtonLocation()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

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

getOffset(ScaffoldPrelayoutGeometry scaffoldGeometry) Offset
Places the FloatingActionButton based on the Scaffold's layout. [...]
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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

Constants

centerDocked → const FloatingActionButtonLocation
Center-aligned FloatingActionButton, floating over the Scaffold.bottomNavigationBar so that the center of the floating action button lines up with the top of the bottom navigation bar. [...]
const _CenterDockedFloatingActionButtonLocation()
centerFloat → const FloatingActionButtonLocation
Centered FloatingActionButton, floating at the bottom of the screen.
const _CenterFloatFabLocation()
endDocked → const FloatingActionButtonLocation
End-aligned FloatingActionButton, floating over the Scaffold.bottomNavigationBar so that the center of the floating action button lines up with the top of the bottom navigation bar. [...]
const _EndDockedFloatingActionButtonLocation()
endFloat → const FloatingActionButtonLocation
End-aligned FloatingActionButton, floating at the bottom of the screen. [...]
const _EndFloatFabLocation()