pub struct AnimatedPadding {
pub padding: EdgeInsetsGeometry,
pub child: Option<WidgetRef>,
/* private fields */
}Expand description
Animated version of Padding which automatically transitions the
indentation over a given duration whenever the given inset changes.
See also:
AnimatedContainer, which can transition more values at once.AnimatedAlign, which automatically transitions its child’s position over a given duration whenever the givenAnimatedAlign::alignmentchanges.
Fields§
§padding: EdgeInsetsGeometryThe amount of space by which to inset the child.
child: Option<WidgetRef>The widget below this widget in the tree.
Implementations§
Source§impl AnimatedPadding
impl AnimatedPadding
Sourcepub fn new(
padding: impl Into<EdgeInsetsGeometry>,
duration: Duration,
) -> AnimatedPadding
pub fn new( padding: impl Into<EdgeInsetsGeometry>, duration: Duration, ) -> AnimatedPadding
Creates a widget that insets its child by a value that animates implicitly.
Sourcepub fn child<K>(self, child: impl IntoWidget<K>) -> AnimatedPadding
pub fn child<K>(self, child: impl IntoWidget<K>) -> AnimatedPadding
Dart AnimatedPadding(child:).
Sourcepub fn key(self, key: KeyRef) -> AnimatedPadding
pub fn key(self, key: KeyRef) -> AnimatedPadding
Dart key:.
Sourcepub fn curve(self, curve: Rc<dyn Curve>) -> AnimatedPadding
pub fn curve(self, curve: Rc<dyn Curve>) -> AnimatedPadding
Dart curve:.
Sourcepub fn on_end(self, on_end: Listener) -> AnimatedPadding
pub fn on_end(self, on_end: Listener) -> AnimatedPadding
Dart onEnd:.
Trait Implementations§
Source§impl Debug for AnimatedPadding
impl Debug for AnimatedPadding
Source§impl ImplicitlyAnimatedWidget for AnimatedPadding
impl ImplicitlyAnimatedWidget for AnimatedPadding
Source§fn implicitly_animated_widget_data_mut(
&mut self,
) -> &mut ImplicitlyAnimatedWidgetData
fn implicitly_animated_widget_data_mut( &mut self, ) -> &mut ImplicitlyAnimatedWidgetData
The
ImplicitlyAnimatedWidgetData bag, mutably.Source§impl StatefulWidget for AnimatedPadding
impl StatefulWidget for AnimatedPadding
Source§type State = AnimatedPaddingState
type State = AnimatedPaddingState
The state this widget creates.
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
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) -> AnimatedPaddingState
fn create_state(&self) -> AnimatedPaddingState
Creates the mutable state for this widget at a given location in the tree. Read more
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
See
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 AnimatedPadding
impl !Send for AnimatedPadding
impl !Sync for AnimatedPadding
impl !UnwindSafe for AnimatedPadding
impl Forget for AnimatedPadding
impl Freeze for AnimatedPaddingwhere
*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 AnimatedPadding
impl Unpin for AnimatedPadding
impl UnsafeUnpin for AnimatedPaddingwhere
*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
Mutably borrows from an owned value. Read more
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>
The widget as a tree node, made where this is called: its
creation_location.