pub struct ScaffoldGeometry {
pub bottom_navigation_bar_top: Option<f64>,
pub floating_action_button_area: Option<Rect>,
}Expand description
Geometry information for Scaffold components after layout is finished.
To get a notifier for the scaffold geometry of a given
BuildContext, use Scaffold::geometry_of.
The ScaffoldGeometry is only available during the paint phase, because its value is computed during the animation and layout phases prior to painting.
For an example of using the ScaffoldGeometry, see the BottomAppBar,
which uses the ScaffoldGeometry to paint a notch around the
FloatingActionButton.
For information about the Scaffold’s geometry that is used while laying
out the FloatingActionButton, see ScaffoldPrelayoutGeometry.
Fields§
The distance from the Scaffold’s top edge to the top edge of the
rectangle in which the Scaffold::bottom_navigation_bar bar is laid out.
Null if Scaffold::bottom_navigation_bar is null.
The Scaffold::floating_action_button’s bounding rectangle.
This is null when there is no floating action button showing.
Implementations§
Source§impl ScaffoldGeometry
impl ScaffoldGeometry
Sourcepub const fn new() -> ScaffoldGeometry
pub const fn new() -> ScaffoldGeometry
Create an object that describes the geometry of a Scaffold.
Dart ScaffoldGeometry(bottomNavigationBarTop:).
Dart ScaffoldGeometry(floatingActionButtonArea:).
Sourcepub fn copy_with(&self) -> ScaffoldGeometry
pub fn copy_with(&self) -> ScaffoldGeometry
Creates a copy of this ScaffoldGeometry but with the given fields replaced with
the new values.