Skip to content

2.10.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Sep 09:07
· 5 commits to main since this release

What's new

  • 448c4f3: Add the Drawer primitive. It provides a lower level abstraction than existing sheets, which enable more functionality (such as side sheets) and features (such as adding padding around the content area of a sheet).
  • 056a111: New documentation site at composeunstyled.com.
  • 025de18: Introduce new ColorScheme support for themes. It allows you to specify prefered ColorSchemes when creating themes, such as Light and Dark. To use it use the new buildThemeV2 {} builder.
  • e5c9914: Expose ModalState.hasMountedFragments and ModalState.isAttachedToWindow.

What's improved

  • 9d5c16c: Add a key parameter to PortalHost and a target parameter to Portal. Both accept a PortalTarget token. A portal uses the nearest host whose key matches its target. PortalTarget.Unspecified matches the nearest untargeted host. Portals with no matching host render nothing.
  • 25fa1b8: Expose the Android modal window through Compose's DialogWindowProvider so window-aware utilities can discover it from modal content. Tooltips that used a generic PortalHost now need a TooltipHost.

What's fixed

  • d9b0f78: Fix Bottom Sheet modifiers being clipped, so effects such as shadows can render outside the sheet bounds.
  • 3625da8: Preserve the caller's layout direction in non-Android modals.
  • 6088abf: Avoid rewriting portal entries when callers recompose.
  • 59d3926: Fix tooltips and modals rendering in the wrong portal host. Each now renders in its matching TooltipHost or ModalHost, even when another portal host is nested inside. These hosts no longer display unrelated portal content.