Repository navigation
v1.1.0-next.1
Pre-release
Pre-release
Overview
Changes
- Added
maxWidthandplacementtoBottomSheetandModalBottomSheet, so a sheet doesn’t stretch across a tablet, foldable, desktop browser, or phone in landscape.maxWidthcaps the sheet’s width in points, including its detent’s sideinsets. The card fills a column up tomaxWidthwide, between its insets, as it would on a screen that wide. A screen narrower thanmaxWidthis filled as before. Leave it unset, or passInfinity, for no cap.placementpositions a sheet thatmaxWidthmakes narrower than its host:'center'(the default),'start', or'end'.'start'and'end'follow the layout direction, like a detent’sstartandendinsets.- Both can change while the sheet is open.
- Fixed stuttering on iOS while a sheet animates to a detent.