pub fn pull_refresh_indicator() -> PullRefreshIndicatorBuilderExpand description
§pull_refresh_indicator
Draws the default pull-to-refresh indicator for refreshable lists and feeds.
§Usage
Use inside a pull-to-refresh container to visualize pull progress or refreshing state.
§Parameters
modifier— optional modifier chain applied to the indicator.size— optional indicator container size.background_color— optional indicator background color.content_color— optional indicator content color.track_color— optional indicator track color.stroke_width— optional indicator stroke width.elevation— optional indicator elevation.controller— optional controller that drives progress and refreshing.
§Examples
use tessera_components::pull_refresh::{PullRefreshController, pull_refresh_indicator};
use tessera_components::theme::{MaterialTheme, material_theme};
use tessera_ui::{remember, tessera};
#[tessera]
fn demo() {
material_theme()
.theme(|| MaterialTheme::default())
.child(|| {
let controller = remember(PullRefreshController::new);
pull_refresh_indicator().controller(controller);
});
}