We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to work with this as a loader when async function begins https://lottiefiles.com/448-ripple-loading-animation
calling _onLoading() from a button press
_onLoading() { showDialog( context: context, barrierDismissible: false, builder: (BuildContext context) { return Lottie.asset("assets/animation/loading.json", fit: BoxFit.contain, width: 200, height: 200); }); }
In the documentation it said it works like a image asset but I think it doesn't :(
The text was updated successfully, but these errors were encountered:
Thanks for the report. I tried your example and replaced Lottie.asset with a Image.asset and I think I see the same behaviour with Lottie or Image.
Lottie.asset
Image.asset
Lottie
Image
Maybe you can try to wrap the content with a Center widget like this?
Center
showDialog<void>( context: context, builder: (context) => Center( child: Lottie.network( 'https://assets10.lottiefiles.com/datafiles/QeC7XD39x4C1CIj/data.json', fit: BoxFit.contain, width: 200, height: 200), ), );
Sorry, something went wrong.
Thanks it worked!
No branches or pull requests
I'm trying to work with this as a loader when async function begins https://lottiefiles.com/448-ripple-loading-animation
calling _onLoading() from a button press
In the documentation it said it works like a image asset but I think it doesn't :(
The text was updated successfully, but these errors were encountered: