pub struct PersistentHeaderShowOnScreenConfiguration {
pub min_show_on_screen_extent: f64,
pub max_show_on_screen_extent: f64,
}Expand description
Specifies how a pinned header or a floating header should react to
crate::RenderObject::show_on_screen calls.
Fields§
§min_show_on_screen_extent: f64The smallest the floating header can expand to in the main axis direction, in response to a
crate::RenderObject::show_on_screen call, in addition to its
RenderSliverPersistentHeader::min_extent.
When a floating persistent header is told to show a Rect on screen, it may expand
itself to accommodate the rect. The minimum extent that is allowed for such expansion is
either the header’s min_extent or this value, whichever is larger.
Defaults to negative infinity, and must be less than or equal to
max_show_on_screen_extent. Has no effect unless the
persistent header is a floating header.
max_show_on_screen_extent: f64The biggest the floating header can expand to in the main axis direction, in response to a
crate::RenderObject::show_on_screen call, in addition to its
RenderSliverPersistentHeader::max_extent.
Defaults to infinity, and must be greater than or equal to
min_show_on_screen_extent. Has no effect unless the
persistent header is a floating header.
Implementations§
Source§impl PersistentHeaderShowOnScreenConfiguration
impl PersistentHeaderShowOnScreenConfiguration
Sourcepub const fn new() -> PersistentHeaderShowOnScreenConfiguration
pub const fn new() -> PersistentHeaderShowOnScreenConfiguration
Creates an object that specifies how a pinned or floating persistent header should behave
in response to crate::RenderObject::show_on_screen calls.