Function

fillSize

Sets the width and height of the component to fill the parent's available space (equivalent to width(1.0f) and height(1.0f)).

fillSize

Source set: Common
public fun SizeScope.fillSize()

Sets the width and height of the component to fill the parent's available space (equivalent to width(1.0f) and height(1.0f)). The specified size includes any padding.

This property is not inherited

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: