# Fr

Artifact: [androidx.compose.foundation:foundation-layout](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/layout/Grid.kt+class:androidx.compose.foundation.layout.Fr) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class Fr
  ```

*** ** * ** ***

Represents a flexible unit used for sizing `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Grid.composable#Grid(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function1)` tracks.

One `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Fr` unit represents a fraction of the *remaining* space in the grid container after `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/GridTrackSize#Fixed(androidx.compose.ui.unit.Dp)` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/GridTrackSize#Percentage(kotlin.Float)` tracks have been allocated.

When multiple tracks use `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Fr` units (e.g., `1.fr`, `2.fr`, `1.fr`), the remaining space is divided proportionally to their weights. The total number of "fractional units" is the sum of all weights (in the example, 1 + 2 + 1 = 4). Each track receives a share of the space equal to its weight divided by the total weight.

- The `1.fr` tracks would each get 1/4 of the remaining space.

- The `2.fr` track would get 2/4 (or 1/2) of the remaining space.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Fr#Fr(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Fr#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Fr#value()` | Cmn |

## Public constructors

### Fr

Cmn Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0)

```
Fr(value: Float)
```

## Public functions

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### value

Cmn Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.11.0)

```
val value: Float
```