![]() If animationUrl or onHide are not provided, they default to the values provided in the call to buildWithLottieOverlay.Īt the end, this is a shortcut for return showLottieOverlayWhile(() async => await layed(period), onHide: onHide, animationUrl: animationUrl). This function shows the Lottie animation animationUrl during the period period. You need to add the mixin to your StatefulWidget along with the TickerProviderStateMixin mixin, and then use the function buildWithLottieOverlay in your build override: class _LottieOverlayHomeState extends State with TickerProviderStateMixin, OverlayLottie ) Version Min Dart SDK Uploaded Documentation Archive 0.2.0: 2.0: 4 years ago: 0.1.1: 1.19: 5 years ago: 0.1.0: 1.19: 5 years ago: 5. Flutter Using packages Developing packages and plugins Publishing a package. flutter pub get) and import them into your application: import 'package:overlay_lottie/overlay_lottie.dart' Pub.dev Searching for packages Package scoring and pub points. To start using this package, add it to your pubspec.yaml file: dependencies: Show a Lottie animation during the execution of a function Show a Lottie animation for a limited time (e.g. Show a Lottie animation from the beginning of the animation to the end (i.e. The basic features of this mixing, where used in a widget are: This package provides a mixin that eases the task of overlaying a Lottie animation over an arbitrary widget, to show activity during the execution of long tasks. The screen has an app bar and a Center widget to put the animation on the screen. ![]() when the animation ends, it has been repeated a specific number of times, or even if the task for which the animation has been shown has ended). A package that overlays a lottie animation over a widget, during the execution of long tasks. Lottie files are a straightforward Flutter application with just one page. Consider supporting this project: License. Render lottie animations, using the native platform libraries. ![]() Using packages Developing packages and plugins Publishing a package. During these periods it is possible to show a fancy animation using the amazing Lottie Files.Īlthough it is easy to show build and show an animation, depending on the state of a StatefulWidget, it is easier not to have to build it ) And it is better if it is not needed to control when to stop showing an animation (e.g. This package implements a bridge between Lottie and Flame, allowing to load and display Lottie animations. Searching for packages Package scoring and pub points. Showing interactivity is important for apps, even while executing blocking tasks like logging in, greeting successful tasks or notifying events. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |