You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current sheet sizes itself to fit its child widget. This is fine in many cases, but making the sheet widget's size independent of the child widget's size allows the sheet to:
Remove unnecessary bottom areas of the child widget, for example, the blank bottom area of the Navigator in a NavigationSheet, and
content-widget, which is the content of the sheet containing meaningful components for the user such as buttons, text, a list-view, etc.
SheetContentBoundary, which notifies the SheetContentViewport of the content widget's size.
content-wrapper-widget, a widget that is optionally inserted between the SheetContentBoundary and the SheetContentViewport. For example, Navigator serves as the content-wrapper-widget for the NavigationSheet. This widget may be larger than the SheetContentViewport and clipped by the Material in such cases.
SheetContentViewport: a special OverflowBox that sizes itself to fit the content widget, and constraints the content wrapper widget to the size of the parent SheetViewport. This ensures that the content wrapper widget can be as large as the SheetViewport at most, while forcing the Material's size to match the content widget's size.
Material, which draws the background color, the shadow, and the rounded corners for the sheet.
The text was updated successfully, but these errors were encountered:
The current sheet sizes itself to fit its child widget. This is fine in many cases, but making the sheet widget's size independent of the child widget's size allows the sheet to:
NavigationSheet
, andImplementation
Here's a rough sketch of the widget hierarchy:
where,
SheetContentViewport
of the content widget's size.SheetContentBoundary
and theSheetContentViewport
. For example,Navigator
serves as the content-wrapper-widget for theNavigationSheet
. This widget may be larger than theSheetContentViewport
and clipped by theMaterial
in such cases.OverflowBox
that sizes itself to fit the content widget, and constraints the content wrapper widget to the size of the parentSheetViewport
. This ensures that the content wrapper widget can be as large as theSheetViewport
at most, while forcing theMaterial
's size to match the content widget's size.The text was updated successfully, but these errors were encountered: