Skip to content

v1.1.0-next.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 12:31
bb76e9c

Overview

Changes

  • Added maxWidth and placement to BottomSheet and ModalBottomSheet, so a sheet doesn’t stretch across a tablet, foldable, desktop browser, or phone in landscape.
    • maxWidth caps the sheet’s width in points, including its detent’s side insets. The card fills a column up to maxWidth wide, between its insets, as it would on a screen that wide. A screen narrower than maxWidth is filled as before. Leave it unset, or pass Infinity, for no cap.
    • placement positions a sheet that maxWidth makes narrower than its host: 'center' (the default), 'start', or 'end'. 'start' and 'end' follow the layout direction, like a detent’s start and end insets.
    • Both can change while the sheet is open.
  • Fixed stuttering on iOS while a sheet animates to a detent.