2d-inc / Nima-Flutter

MIT License
198 stars 37 forks source link

Unhandled Exception: type 'ActorNode' is not a subtype of type 'ActorBoneBase' in type cast #18

Open fauziridwan1709 opened 5 years ago

fauziridwan1709 commented 5 years ago

import 'package:flutter/material.dart'; import 'package:sbmptn_indonesia/Tools/nima_actor.dart';

class PagePlace extends StatelessWidget { @override Widget build(BuildContext context) { return Container( width:600, height: 1000, child: new NimaActor( 'assets/Robot.nma', alignment: Alignment.center, fit: BoxFit.contain, animation:'idle', mixSeconds: 0.2, ), ); } }

zk-luke commented 5 years ago

I guess that you must have chosen JSON format in export settings when exporting the animation from Nima editor. this is a bug. choose the Binary format in export settings will solve the problem.