pub struct RefreshProgressIndicator {
pub circular_progress_indicator: CircularProgressIndicator,
pub elevation: f64,
pub indicator_margin: EdgeInsetsGeometry,
pub indicator_padding: EdgeInsetsGeometry,
}Expand description
An indicator for the progress of refreshing the contents of a widget.
Typically used for swipe-to-refresh interactions. See RefreshIndicator for
a complete implementation of swipe-to-refresh driven by a Scrollable
widget.
The indicator arc is displayed with value_color, an animated value. To
specify a constant color use: AlwaysStoppedAnimation::new(Some(color)).
See also:
RefreshIndicator, which automatically displays aCircularProgressIndicatorwhen the underlying vertical scrollable is overscrolled.
Fields§
§circular_progress_indicator: CircularProgressIndicatorThe CircularProgressIndicator this extends.
Its progress_indicator.background_color is the background color of that fills the
circle under the refresh indicator. If RefreshIndicator.backgroundColor is null then
the ambient ProgressIndicatorThemeData::refresh_background_color will be used.
If that is null, then the ambient theme’s ThemeData::canvas_color will be used.
elevation: f64The z-coordinate at which to place this material relative to its parent.
indicator_margin: EdgeInsetsGeometryThe amount of space by which to inset the whole indicator.
It accommodates the elevation of the indicator.
indicator_padding: EdgeInsetsGeometryThe amount of space by which to inset the inner refresh indicator.
Implementations§
Source§impl RefreshProgressIndicator
impl RefreshProgressIndicator
Sourcepub const DEFAULT_STROKE_WIDTH: f64 = 2.5
pub const DEFAULT_STROKE_WIDTH: f64 = 2.5
Default stroke width.
Sourcepub fn new() -> RefreshProgressIndicator
pub fn new() -> RefreshProgressIndicator
Creates a refresh progress indicator.
Rather than creating a refresh progress indicator directly, consider using
a RefreshIndicator together with a Scrollable widget.
The value argument can either be null for an indeterminate
progress indicator, or a non-null value between 0.0 and 1.0 for a
determinate progress indicator.
Sourcepub fn key(self, key: KeyRef) -> RefreshProgressIndicator
pub fn key(self, key: KeyRef) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(key:).
Sourcepub fn background_color(
self,
background_color: Color,
) -> RefreshProgressIndicator
pub fn background_color( self, background_color: Color, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(backgroundColor:).
Sourcepub fn color(self, color: Color) -> RefreshProgressIndicator
pub fn color(self, color: Color) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(color:).
Sourcepub fn value_color(
self,
value_color: AnimationRef<Option<Color>>,
) -> RefreshProgressIndicator
pub fn value_color( self, value_color: AnimationRef<Option<Color>>, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(valueColor:).
Sourcepub fn semantics_label(
self,
semantics_label: impl Into<String>,
) -> RefreshProgressIndicator
pub fn semantics_label( self, semantics_label: impl Into<String>, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(semanticsLabel:).
Sourcepub fn semantics_value(
self,
semantics_value: impl Into<String>,
) -> RefreshProgressIndicator
pub fn semantics_value( self, semantics_value: impl Into<String>, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(semanticsValue:).
Sourcepub fn value(self, value: f64) -> RefreshProgressIndicator
pub fn value(self, value: f64) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(value:).
Sourcepub fn stroke_width(self, stroke_width: f64) -> RefreshProgressIndicator
pub fn stroke_width(self, stroke_width: f64) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(strokeWidth:).
Sourcepub fn stroke_align(self, stroke_align: f64) -> RefreshProgressIndicator
pub fn stroke_align(self, stroke_align: f64) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(strokeAlign:).
Sourcepub fn stroke_cap(self, stroke_cap: StrokeCap) -> RefreshProgressIndicator
pub fn stroke_cap(self, stroke_cap: StrokeCap) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(strokeCap:).
Sourcepub fn elevation(self, elevation: f64) -> RefreshProgressIndicator
pub fn elevation(self, elevation: f64) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(elevation:).
Sourcepub fn indicator_margin(
self,
indicator_margin: impl Into<EdgeInsetsGeometry>,
) -> RefreshProgressIndicator
pub fn indicator_margin( self, indicator_margin: impl Into<EdgeInsetsGeometry>, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(indicatorMargin:).
Sourcepub fn indicator_padding(
self,
indicator_padding: impl Into<EdgeInsetsGeometry>,
) -> RefreshProgressIndicator
pub fn indicator_padding( self, indicator_padding: impl Into<EdgeInsetsGeometry>, ) -> RefreshProgressIndicator
Dart RefreshProgressIndicator(indicatorPadding:).
Trait Implementations§
Source§impl Debug for RefreshProgressIndicator
impl Debug for RefreshProgressIndicator
Source§impl Default for RefreshProgressIndicator
impl Default for RefreshProgressIndicator
Source§fn default() -> RefreshProgressIndicator
fn default() -> RefreshProgressIndicator
Source§impl ProgressIndicator for RefreshProgressIndicator
impl ProgressIndicator for RefreshProgressIndicator
Source§fn progress_indicator_data(&self) -> &ProgressIndicatorData
fn progress_indicator_data(&self) -> &ProgressIndicatorData
ProgressIndicatorData bag.Source§impl StatefulWidget for RefreshProgressIndicator
impl StatefulWidget for RefreshProgressIndicator
Source§type State = RefreshProgressIndicatorState
type State = RefreshProgressIndicatorState
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn create_state(&self) -> RefreshProgressIndicatorState
fn create_state(&self) -> RefreshProgressIndicatorState
Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for RefreshProgressIndicator
impl !Send for RefreshProgressIndicator
impl !Sync for RefreshProgressIndicator
impl !UnwindSafe for RefreshProgressIndicator
impl Forget for RefreshProgressIndicator
impl Freeze for RefreshProgressIndicatorwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
&'static AnimationVTable<Option<Color>>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<fn() -> AnimationController>: Freeze,
impl Move for RefreshProgressIndicator
impl Unpin for RefreshProgressIndicator
impl UnsafeUnpin for RefreshProgressIndicatorwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static AnimationVTable<Option<Color>>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn() -> AnimationController>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.