spine_core 0.2.0

spine_core #

The spine_core runtime provides functionality to load and manipulate Spine skeletal animation data using Dart. It does not perform rendering but can be extended to enable Spine animations for other Dart-based projects.

Spine License #

This Spine Runtime may only be used for personal or internal use, typically to evaluate Spine before purchasing. If you would like to incorporate a Spine Runtime into your applications, distribute software containing a Spine Runtime, or modify a Spine Runtime, then you will need a valid Spine license. Please see the Spine Runtimes Software License for detailed information.

The Spine Runtimes are developed with the intent to be used with data exported from Spine. By purchasing Spine, Section 2 of the Spine Software License grants the right to create and distribute derivative works of the Spine Runtimes.

0.1.0 #

  • Initial version, created by Junji Takakura

Use this package as a library

1. Depend on it

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


dependencies:
  spine_core: ^0.2.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:spine_core/spine_core.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
37
Health:
Code health derived from static analysis. [more]
38
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:spine_core/spine_core.dart.

Health issues and suggestions

Document public APIs. (-1 points)

1281 out of 1281 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/skeleton_json.dart. (-13.96 points)

Analysis of lib/src/skeleton_json.dart reported 30 hints, including:

line 78 col 13: DO use curly braces for all flow control structures.

line 105 col 11: DO use curly braces for all flow control structures.

line 144 col 11: DO use curly braces for all flow control structures.

line 167 col 13: DO use curly braces for all flow control structures.

line 174 col 11: DO use curly braces for all flow control structures.

Fix lib/src/animation.dart. (-13.09 points)

Analysis of lib/src/animation.dart reported 28 hints, including:

line 54 col 7: DO use curly braces for all flow control structures.

line 65 col 9: DO use curly braces for all flow control structures.

line 67 col 9: DO use curly braces for all flow control structures.

line 75 col 7: DO use curly braces for all flow control structures.

line 117 col 7: DO use curly braces for all flow control structures.

Fix lib/src/animation_state.dart. (-12.22 points)

Analysis of lib/src/animation_state.dart reported 26 hints, including:

line 169 col 9: DO use curly braces for all flow control structures.

line 171 col 9: DO use curly braces for all flow control structures.

line 180 col 11: DO use curly braces for all flow control structures.

line 187 col 11: DO use curly braces for all flow control structures.

line 244 col 7: DO use curly braces for all flow control structures.

Fix additional 15 files with analysis or formatting issues. (-50.83 points)

Additional issues in the following files:

  • lib/src/skeleton.dart (24 hints)
  • lib/src/skeleton_data.dart (18 hints)
  • lib/src/path_constraint.dart (15 hints)
  • lib/src/transform_constraint.dart (15 hints)
  • lib/src/ik_constraint.dart (6 hints)
  • lib/src/texture_atlas.dart (5 hints)
  • lib/src/utils.dart (5 hints)
  • lib/src/skeleton_clipping.dart (4 hints)
  • lib/src/triangulator.dart (4 hints)
  • lib/src/skeleton_bounds.dart (3 hints)
  • lib/src/atlas_attachment_loader.dart (2 hints)
  • lib/src/animation_state_data.dart (1 hint)
  • lib/src/attachments/mesh_attachment.dart (1 hint)
  • lib/src/skin.dart (1 hint)
  • lib/src/slot.dart (1 hint)

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and spine_core.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.51.0 <3.0.0
Dev dependencies
test ^1.0.0

Admin