Function

fillWidth

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

fillWidth

Source set: Common
public fun SizeScope.fillWidth()

Sets the width of the component to fill the parent's available width (equivalent to width(1.0f)). The specified width 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: