Open fauziridwan1709 opened 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, ), ); } }
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.
JSON
Binary
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, ), ); } }