pub struct AnimatedPositionedDirectional {
pub child: WidgetRef,
pub start: Option<f64>,
pub top: Option<f64>,
pub end: Option<f64>,
pub bottom: Option<f64>,
pub width: Option<f64>,
pub height: Option<f64>,
/* private fields */
}Expand description
Animated version of PositionedDirectional which automatically transitions
the child’s position over a given duration whenever the given position
changes.
The ambient Directionality is used to determine whether
start is to the left or to the right.
Only works if it’s the child of a Stack.
See also:
AnimatedPositioned, which specifies the widget’s position visually (the same as this widget, but for animatingPositioned).
Fields§
§child: WidgetRefThe widget below this widget in the tree.
start: Option<f64>The offset of the child’s start edge from the start of the stack.
top: Option<f64>The offset of the child’s top edge from the top of the stack.
end: Option<f64>The offset of the child’s end edge from the end of the stack.
bottom: Option<f64>The offset of the child’s bottom edge from the bottom of the stack.
width: Option<f64>The child’s width.
Only two out of the three horizontal values (start,
end, width) can be set. The third must be None.
height: Option<f64>The child’s height.
Only two out of the three vertical values (top,
bottom, height) can be set. The third must be
None.
Implementations§
Source§impl AnimatedPositionedDirectional
impl AnimatedPositionedDirectional
Sourcepub fn new<K>(
child: impl IntoWidget<K>,
duration: Duration,
) -> AnimatedPositionedDirectional
pub fn new<K>( child: impl IntoWidget<K>, duration: Duration, ) -> AnimatedPositionedDirectional
Sourcepub fn start(self, start: f64) -> AnimatedPositionedDirectional
pub fn start(self, start: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(start:).
Sourcepub fn top(self, top: f64) -> AnimatedPositionedDirectional
pub fn top(self, top: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(top:).
Sourcepub fn end(self, end: f64) -> AnimatedPositionedDirectional
pub fn end(self, end: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(end:).
Sourcepub fn bottom(self, bottom: f64) -> AnimatedPositionedDirectional
pub fn bottom(self, bottom: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(bottom:).
Sourcepub fn width(self, width: f64) -> AnimatedPositionedDirectional
pub fn width(self, width: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(width:).
Sourcepub fn height(self, height: f64) -> AnimatedPositionedDirectional
pub fn height(self, height: f64) -> AnimatedPositionedDirectional
Dart AnimatedPositionedDirectional(height:).
Sourcepub fn key(self, key: KeyRef) -> AnimatedPositionedDirectional
pub fn key(self, key: KeyRef) -> AnimatedPositionedDirectional
Dart key:.
Sourcepub fn curve(self, curve: Rc<dyn Curve>) -> AnimatedPositionedDirectional
pub fn curve(self, curve: Rc<dyn Curve>) -> AnimatedPositionedDirectional
Dart curve:.
Sourcepub fn on_end(self, on_end: Listener) -> AnimatedPositionedDirectional
pub fn on_end(self, on_end: Listener) -> AnimatedPositionedDirectional
Dart onEnd:.
Trait Implementations§
Source§impl ImplicitlyAnimatedWidget for AnimatedPositionedDirectional
impl ImplicitlyAnimatedWidget for AnimatedPositionedDirectional
Source§fn implicitly_animated_widget_data_mut(
&mut self,
) -> &mut ImplicitlyAnimatedWidgetData
fn implicitly_animated_widget_data_mut( &mut self, ) -> &mut ImplicitlyAnimatedWidgetData
ImplicitlyAnimatedWidgetData bag, mutably.Source§impl StatefulWidget for AnimatedPositionedDirectional
impl StatefulWidget for AnimatedPositionedDirectional
Source§type State = AnimatedPositionedDirectionalState
type State = AnimatedPositionedDirectionalState
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) -> AnimatedPositionedDirectionalState
fn create_state(&self) -> AnimatedPositionedDirectionalState
Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
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 AnimatedPositionedDirectional
impl !Send for AnimatedPositionedDirectional
impl !Sync for AnimatedPositionedDirectional
impl !UnwindSafe for AnimatedPositionedDirectional
impl Forget for AnimatedPositionedDirectional
impl Freeze for AnimatedPositionedDirectionalwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn Curve> is !null: Freeze,
PhantomData<RcInner<dyn Curve>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
NonZero<u32>: Freeze,
*const (): Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for AnimatedPositionedDirectional
impl Unpin for AnimatedPositionedDirectional
impl UnsafeUnpin for AnimatedPositionedDirectionalwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Curve> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Curve>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: 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.