Fr
-
Cmn
@ExperimentalGridApi
value class Fr
Represents a flexible unit used for sizing Grid tracks.
One Fr unit represents a fraction of the remaining space in the grid container after GridTrackSize.Fixed and GridTrackSize.Percentage tracks have been allocated.
When multiple tracks use 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.frtracks would each get 1/4 of the remaining space. -
The
2.frtrack would get 2/4 (or 1/2) of the remaining space.