Skip to main content

BoxScrollView

Trait BoxScrollView 

Source
pub trait BoxScrollView: ScrollView {
    // Required methods
    fn box_scroll_view_data(&self) -> &BoxScrollViewData;
    fn box_scroll_view_data_mut(&mut self) -> &mut BoxScrollViewData;
    fn build_child_layout(
        &self,
        app: &mut App,
        context: BuildContext,
    ) -> WidgetRef;
}
Expand description

A ScrollView that uses a single child layout model.

Scroll views are often decorated with scrollbars and overscroll indicators, which are managed by the inherited ScrollBehavior. Placing a ScrollConfiguration above a scroll view can modify these behaviors for that scroll view.

The shared buildSlivers body lives on BoxScrollViewBase, which an implementor’s ScrollView::build_slivers calls.

Required Methods§

Source

fn box_scroll_view_data(&self) -> &BoxScrollViewData

Source

fn box_scroll_view_data_mut(&mut self) -> &mut BoxScrollViewData

The BoxScrollViewData bag, mutably.

Source

fn build_child_layout(&self, app: &mut App, context: BuildContext) -> WidgetRef

Implementors override this method to build the layout model.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§