---
title: "FabPosition"
description: "The possible positions for a [FloatingActionButton] attached to a [Scaffold]."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class FabPosition internal constructor(@Suppress("unused") private val value: Int)
```


The possible positions for a `FloatingActionButton` attached to a `Scaffold`.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Start = FabPosition(0)
```


Position FAB at the bottom of the screen at the start, above the `NavigationBar` (if it
exists)



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Center = FabPosition(1)
```


Position FAB at the bottom of the screen in the center, above the `NavigationBar` (if it
exists)



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val End = FabPosition(2)
```


Position FAB at the bottom of the screen at the end, above the `NavigationBar` (if it
exists)



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val EndOverlay = FabPosition(3)
```


Position FAB at the bottom of the screen at the end, overlaying the `NavigationBar` (if
it exists)





