pub struct Builder<T> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl LottieBuilderExt for Builder<Lottie>
impl LottieBuilderExt for Builder<Lottie>
Source§fn asset(&self, name: &str) -> &Self
fn asset(&self, name: &str) -> &Self
Creates a widget that displays an LottieComposition
obtained from an AssetBundle
.
Source§fn file(&self, file: File) -> &Self
fn file(&self, file: File) -> &Self
Creates a widget that displays an LottieComposition
obtained from a File
.
Source§fn memory(&self, byf: Bytes) -> &Self
fn memory(&self, byf: Bytes) -> &Self
Creates a widget that displays an LottieComposition
obtained from a Uint8List
.
Source§fn network(&self, url: &str) -> &Self
fn network(&self, url: &str) -> &Self
Creates a widget that displays an LottieComposition
obtained from the network.
Source§fn framerate(&self, framerate: FrameRate) -> &Self
fn framerate(&self, framerate: FrameRate) -> &Self
The number of frames per second to render.
Use
FrameRate.composition
to use the original frame rate of the Lottie composition (default)
Use FrameRate.max
to advance the animation progression at every frame. Read moreSource§fn animate(&self, animate: bool) -> &Self
fn animate(&self, animate: bool) -> &Self
If no controller is specified, this value indicate whether or not the
Lottie animation should be played automatically (default to true).
If there is an animation controller specified, this property has no effect. Read more
Source§fn repeat(&self, repeat: bool) -> &Self
fn repeat(&self, repeat: bool) -> &Self
Specify that the automatic animation should repeat in a loop (default to true).
The property has no effect if
animate
is false or controller
is not null.Source§fn reverse(&self, reverse: bool) -> &Self
fn reverse(&self, reverse: bool) -> &Self
Specify that the automatic animation should repeat in a loop in a “reverse”
mode (go from start to end and then continuously from end to start).
It default to false.
The property has no effect if
animate
is false, repeat
is false or controller
is not null.Source§fn delegates(&self, delegates: LottieDelegates) -> &Self
fn delegates(&self, delegates: LottieDelegates) -> &Self
A group of callbacks to further customize the lottie animation. Read more
Source§fn options(&self, options: LottieDelegates) -> &Self
fn options(&self, options: LottieDelegates) -> &Self
Some options to enable/disable some feature of Lottie Read more
fn onloaded(&self, f: &str) -> &Self
fn image_provider_factory(&self, factory: LottieImageProviderFactory) -> &Self
fn key(&self, key: &str) -> &Self
fn framebuilder(&self, bundle: LottieFrameBuilder) -> &Self
Source§fn width(&self, width: f64) -> &Self
fn width(&self, width: f64) -> &Self
If non-null, requires the composition to have this width. Read more
Source§fn height(&self, height: f64) -> &Self
fn height(&self, height: f64) -> &Self
If non-null, require the composition to have this height. Read more
fn package(&self, package: &str) -> &Self
Source§fn add_repaint_boundary(&self, value: bool) -> &Self
fn add_repaint_boundary(&self, value: bool) -> &Self
Indicate to automatically add a
RepaintBoundary
widget around the animation.
This allows to optimize the app performance by isolating the animation in its
own Layer
. Read moreAuto Trait Implementations§
impl<T> !Freeze for Builder<T>
impl<T> !RefUnwindSafe for Builder<T>
impl<T> !Send for Builder<T>
impl<T> !Sync for Builder<T>
impl<T> Unpin for Builder<T>
impl<T> UnwindSafe for Builder<T>where
T: RefUnwindSafe,
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