This site requires javascript.
Android Code Search
file:androidx/compose/foundation/layout/Size.kt function:size
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/
Size.kt
content_copy
Preview
114:
115:
116:
@Stable
fun
Modifier.
size
(size: Dp) =
this.then(
144:
145:
146:
@Stable
fun
Modifier.
size
(width: Dp, height: Dp) =
this.then(
173:
174:
175:
*/
@Stable
fun
Modifier.
size
(size: DpSize) = size(size.width, size.height)
324:
325:
326:
@Stable
fun
Modifier.required
Size
(size: Dp) =
this.then(
352:
353:
354:
@Stable
fun
Modifier.required
Size
(width: Dp, height: Dp) =
this.then(
379:
380:
381:
*/
@Stable
fun
Modifier.required
Size
(size: DpSize) = requiredSize(size.width, size.height)
521:
522:
523:
@Stable
fun
Modifier.fillMax
Size
(@FloatRange(from =
0.0
, to =
1.0
) fraction: Float =
1f
) =
this.then(
if
(fraction ==
1f
) FillWholeMaxSize
else
FillElement.size(fraction))
624:
625:
626:
@Stable
fun
Modifier.defaultMin
Size
(minWidth: Dp = Dp.Unspecified, minHeight: Dp = Dp.Unspecified) =
this.then(UnspecifiedConstraintsElement(minWidth = minWidth, minHeight = minHeight))
679:
680:
681:
@Stable
fun
size
(fraction: Float) =
FillElement(
989:
990:
991:
@Stable
fun
size
(align: Alignment, unbounded: Boolean) =
WrapContentElement(
unfold_more
Show 3 more matching lines
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main