Property

LocalSize

Size of the glance view being generated.

Source set: Android
public val LocalSize: ProvidableCompositionLocal<DpSize> =
    staticCompositionLocalOf<DpSize> { error("No default size") }

Size of the glance view being generated.

The glance view will have at least that much space to be displayed. The exact meaning may changed depending on the surface and how it is configured.

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: