pub struct SizeAnim {
pub key: u64,
pub duration: Duration,
pub easing: fn(f32) -> f32,
}Expand description
Declara que el tamaño de este nodo (CSS width/height /
Flutter AnimatedSize/Compose animateContentSize()) se anima de
forma implícita cuando cambia entre frames. Bloque 15 de
PARIDAD-FLUTTER (extensión faltante del Bloque 4).
A diferencia de Anim (que interpola props de paint después
del layout: fill/radius/alpha/transform), el tamaño tiene que estar
fijo antes del layout — siblings y hijos dependen del rect del
nodo. Por eso este registro vive aparte y el reconciler camina el
View tree antes de mount, parchando style.size con el
valor interpolado.
Límite v1: sólo anima cuando style.size.width y
style.size.height son ambas Dimension::Length(_). Si una es
Percent/Auto, el nodo se monta tal cual sin animación (no hay
“tamaño en píxeles” estable para interpolar). El caller que quiera
animar un nodo flex debe declarar length(...) explícito.
Fields§
§key: u64§duration: Duration§easing: fn(f32) -> f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeAnim
impl RefUnwindSafe for SizeAnim
impl Send for SizeAnim
impl Sync for SizeAnim
impl Unpin for SizeAnim
impl UnsafeUnpin for SizeAnim
impl UnwindSafe for SizeAnim
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.