nima 1.0.1

  • Installing
  • Versions
  • 67


Flutter runtime written in Dart with SKIA based rendering.


Add nima as a dependency in your pubspec.yaml file.

Exporting for Flutter

Export from Nima with the Export to Engine menu. In the Engine drop down, choose Generic.

Adding Assets

Once you've exported your character file. Add the .nima file and and the .png atlas files to your project's Flutter assets.

Make sure the .png files are at the same level as the.nima file. If you renamed your .nima file, make sure to rename your assets accordingly.

In the future we may opt to package the images into the .nima file as we do for WebGL. Let us know if you're in favor of this!


Take a look at the provided example application for how to use the NimaActor widget with an exported Nima character.


The easiest way to get started is by using the provided NimaActor widget. This is a stateless Flutter widget that allows for one Nima character with one active animation playing. You can change the currently playing animation by changing the animation property's name. You can also specify the mixSeconds to determine how long it takes for the animation to interpolate from the previous one. A value of 0 means that it will just pop to the new animation. A value of 0.5 will mean it takes half of a second to fully mix the new animation on top of the old one.

import 'package:nima/nima_actor.dart';
class MyHomePage extends StatefulWidget {
  _MyHomePageState createState() => new _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context) {
    return new NimaActor("assets/Hop",, fit:BoxFit.contain, animation:"idle");

Advanced Usage

For more advanced usage such as creating views with multiple Nima characters, multiple active animations, and controllers, please refer to the internals of nima_actor.dart to get acquainted with the API. We'll be posting more detailed tutorials and documentation regarding the inner workings of the API soon.


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.


See the LICENSE file for license rights and limitations (MIT).

[1.0.0] - 5/5/2018

  • Initial release with an example NimaActor widget that implements a LeafRenderObjectWidget that can render a Nima actor. Alignment is done based on the setup axis aligned bounding box.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  nima: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:nima/nima.dart';
Version Uploaded Documentation Archive
1.0.1 Aug 11, 2018 Go to the documentation of nima 1.0.1 Download nima 1.0.1 archive
1.0.0 May 6, 2018 Go to the documentation of nima 1.0.0 Download nima 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6
  • Flutter: 0.11.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/nima/animation/value_time_curve_interpolator.dart. (-44.87 points)

Analysis of lib/nima/animation/value_time_curve_interpolator.dart failed with 2 errors, 4 hints, including:

line 73 col 3: Missing case clause for 'Linear'.

line 73 col 3: Missing case clause for 'Progression'.

line 98 col 9: The value of the field '_y0' isn't used.

line 101 col 9: The value of the field '_y1' isn't used.

line 104 col 9: The value of the field '_y2' isn't used.

Fix lib/nima/animation/keyframe.dart. (-25 points)

Analysis of lib/nima/animation/keyframe.dart failed with 1 error:

line 221 col 3: Missing case clause for 'Progression'.

Fix lib/nima.dart. (-0.50 points)

Analysis of lib/nima.dart reported 1 hint:

line 94 col 7: The value of the local variable 'uvOffset' isn't used.

Fix additional 3 files with analysis or formatting issues. (-1.50 points)

Additional issues in the following files:

  • lib/nima/actor_loader.dart (1 hint)
  • lib/nima/animation/actor_animation.dart (1 hint)
  • lib/nima_actor.dart (1 hint)

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use nima.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
test ^0.12.0