.nma.bytesFile and.pngImage file, specified when used.nma.bytesfile nameNima-Flutter:https://github.com/2d-inc/Nima-Flutter
nima 1.0.5:https://pub.dev/packages/nima
Open the CMD terminal, execute the following instructions (automatically add Pubspec.yaml dependence)
flutter pub add nima
CDM terminal mode, executing the following instructions (Pubspec.yaml depends deleted)
flutter pub remove nima
From the upper right corner, drop-down list Select a FLARE file

In the NIMA animation details page, clickOPEN IN NIMA

After entering the details page, switch toANIMATE(animate)Tab, view action name, and corresponding animation (Wave, fly)

Click on the output button at the bottom to output this animation (after decompression is MyRobot.nma.bytes and MyRobot.png, put it in the assets directory)

assets:
- images/
- assets/
// Select one from Wave, Fly
String _animationName = "wave";
body: Column(
children: [
Flexible(child: NimaActor("assets/myrobot.nma.bytes", alignment:Alignment.center, fit:BoxFit.contain, animation: _animationName,)),
Row(
mainAxisAlignment:MainAxisAlignment.center,
children: [
RaisedButton(child: Text("wave"),onPressed: (){setState(() {_animationName="wave";});}),
RaisedButton(child: Text("fly"),onPressed: (){setState(() {_animationName="fly";});})
],)
],
)

I. Overview Rive is a FLARE upgrade version, is a real-time interaction design and animation tool. The reciprion of the file is.riv, Use it when loading animation isRive Flutter runtime Rive supports ...
Introduction inFlutter Animation animation development-the simplest animation introductionIn this article we introduced the simplest animation development process Today we add an animation curve on th...
In the following code, we have implemented an animation that changes the width and height of the green square from 100 to 500 within 5 seconds. to sum up: Create AnimationController and set the durati...
1. Which types of animation 2. Add animation 3. Add a monitor to animation 4.AnImatedWidget and AnimatedBuilder 5. Hero animation 1. Which types of animation About two categories: Tween -based and phy...
We know that AnimationController.forward () can play animation in forward direction, if you want to play animation in reverse, you can call AnimationController.reverse () Step on the pit Immediately w...
Introduction We know that AnimationController.forward () can play the animation in the forward direction, and AnimationController.reverse () can play the animation in the reverse direction. If you wan...
I. Overview Hero animation is also called transition animation Excessive animation: When the user clicks on a picture, switch to another page, this page also has this picture. Di Hero 2.1 Constructor ...
I. Overview List animation, AnimatedList animation, is a display list data when component animation When the data of the list changes (when adding or deleted), show this change in the form of animatio...
Source code analysis In the previous article we introduced that the addListener of Animation can be used to monitor the changes of each frame of the animation And if you want to monitor the status cha...
This article has authorized WeChat public accountYYGeeker Please indicate the source for the exclusive reprint Control introduction DecoratedBoxTransitionRepresents a border animation, you can control...