2d-inc / flare-flutter Goto Github PK
View Code? Open in Web Editor NEWLoad and get full control of your Rive files in a Flutter project using this library.
Home Page: https://rive.app/
License: MIT License
Load and get full control of your Rive files in a Flutter project using this library.
Home Page: https://rive.app/
License: MIT License
Hey.
I'm having trouble parsing my Flare file in the flutter: I get a weird error The method '[]' was called on null.
Flutter code:
child: FlareActor(
"resources/animations/animated_house.flr",
animation: "Enter transition",
),
Stacktrace:
[ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception:
NoSuchMethodError: The method '[]' was called on null.
Receiver: null
Tried calling: [](0)
#0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1 JSONReader._readArrayOffset (package:flarecode/flare/json_reader.dart:59:22)
#2 JSONReader.readFloat32ArrayOffset (package:flarecode/flare/json_reader.dart:45:10)
#3 KeyFramePathVertices.read (package:flarecode/flare/animation/keyframe.dart:699:14)
#4 PropertyAnimation.read (package:flarecode/flare/animation/actor_animation.dart:148:38)
#5 ComponentAnimation.read (package:flarecode/flare/animation/actor_animation.dart:230:61)
#6 ActorAnimation.read (package:flarecode/flare/animation/actor_animation.dart:422:30)
#7 ActorArtboard.readAnimationsBlock (package:flarecode/flare/actor_artboard.dart:561:30)
#8 ActorArtboard.read (package:flarecode/flare/actor_artboard.dart:310:11)
#9 Actor.readArtboardsBlock (package:flarecode/flare/actor.dart:160:22)
#10 Actor.load (package:flarecode/flare/actor.dart:139:11)
#11 FlutterActor.loadFromBundle.<anonymous closure> (package:flarecode/flare.dart:507:13)
#12 _RootZone.runUnary (dart:async/zone.dart:1379:54)
#13 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#15 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#16 Future._complete (dart:async/future_impl.dart:476:7)
#17 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#18 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#19 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#20 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart)
<asynchronous suspension>
#21 FlutterActor.loadFromBundle (package:flarecode/flare.dart:506:16)
<asynchronous suspension>
#22 FlareActorRenderObject.filename= (package:flarecode/flare_actor.dart:208:13)
#23 FlareActor.createRenderObject (package:flarecode/flare_actor.dart:44:9)
#24 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4482:28)
#25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
#26 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
#27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
#28 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
#29 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
#30 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
#31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
#32 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
#33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
#34 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
#35 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
#36 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3848:11)
#37 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
#38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
#39 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
#40 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4860:14)
#41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
#42 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
#43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
#44 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
#45 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
Flutter file:
https://www.2dimensions.com/a/bvantur/files/flare/animated-house-2/preview
Also, I have noticed that in preview door doesn't get opened as they get opened inside of a Flare editor. I have tried exporting .flr file as Binary and JSON format.
Hello, I am using the latest version of flare_flutter 1.3.0
Reference code : https://github.com/tarek360/Boring-Star-Animation (all same, but version 1.3.0)
The code works fine out of the box, but when I changed the animation, it displayed, but a still image (not a moving animation)
And, this was the error :
E/flutter (24934): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method '*' was called on null. E/flutter (24934): Receiver: null E/flutter (24934): Tried calling: *(0.0) E/flutter (24934): #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5) E/flutter (24934): #1 KeyFrameStrokeEnd.setValue (package:flare_dart/animation/keyframe.dart:1161:33) E/flutter (24934): #2 KeyFrameNumeric.apply (package:flare_dart/animation/keyframe.dart:138:5) E/flutter (24934): #3 PropertyAnimation.apply (package:flare_dart/animation/actor_animation.dart:199:21) E/flutter (24934): #4 ComponentAnimation.apply (package:flare_dart/animation/actor_animation.dart:248:27) E/flutter (24934): #5 ActorAnimation.apply (package:flare_dart/animation/actor_animation.dart:403:26) E/flutter (24934): #6 FlareActorRenderObject._updateAnimation (package:flare_flutter/flare_actor.dart:468:19) E/flutter (24934): #7 FlareActorRenderObject.filename=.<anonymous closure> (package:flare_flutter/flare_actor.dart:245:11) E/flutter (24934): #8 _rootRunUnary (dart:async/zone.dart:1132:38) E/flutter (24934): #9 _CustomZone.runUnary (dart:async/zone.dart:1029:19) E/flutter (24934): #10 _FutureListener.handleValue (dart:async/future_impl.dart:126:18) E/flutter (24934): #11 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45) E/flutter (24934): #12 Future._propagateToListeners (dart:async/future_impl.dart:668:32) E/flutter (24934): #13 Future._complete (dart:async/future_impl.dart:473:7) E/flutter (24934): #14 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) E/flutter (24934): #15 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20) E/flutter (24934): #16 _rootRun (dart:async/zone.dart:1120:38) E/flutter (24934): #17 _CustomZone.run (dart:async/zone.dart:1021:19) E/flutter (24934): #18 _CustomZone.runGuarded (dart:async/zone.dart:923:7) E/flutter (24934): #19 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23) E/flutter (24934): #20 _rootRun (dart:async/zone.dart:1124:13) E/flutter (24934): #21 _CustomZone.run (dart:async/zone.dart:1021:19) E/flutter (24934): #22 _CustomZone.runGuarded (dart:async/zone.dart:923:7) E/flutter (24934): #23 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23) E/flutter (24934): #24 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) E/flutter (24934): #25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) E/flutter (24934):
The animation :
https://www.2dimensions.com/a/innocent/files/flare/status_success
EDIT : I used both binary and json formats, but no luck :(
EDIT 2 : I used below animation and is WORKING fine :
https://www.2dimensions.com/a/pollux/files/flare/smiley-switch
I don't know what is the problem with my animation :(
This project consists of 2 animations, both of which work perfectly on Flare.
When I export the .flr
file in my Flutter project, that's when the animations start behaving in a weird manner.
FlareActor(
"assets/hummingbird.flr",
alignment: Alignment.center,
fit: BoxFit.fitHeight,
animation: _animation,
),
Having FlareActor in widget tree broke test driver.
https://flutter.dev/docs/cookbook/testing/integration/introduction
flutter/flutter#25975
There should be an option to export a certain part of an animation, no matter where it starts or ends. Like exporting the part that starts from the 4th second to 6th second. This is needed because it allows making loop animation with complex curves to be much much easier, or rather possible. If you always start exporting from the 1st frame, making loops become much harder, sometimes even impossible if they have complex animation curves. Because you would need to repeat some layers certain seconds apart from each other.
Also, any given object should be able to animatable on a curved path, like in After Effects. Drawing the path that a layer would follow is much easier than calculating X and Y values for that to happen.
Hello,
I created a Flare animation a few months ago : https://www.2dimensions.com/a/tektas/files/flare/literda-logo/preview
I was using this particular animation with FlareActor
's color parameter. After updating the latest version (v1.2.1
), FlareActor
's color parameter does not work.
Here is a minimal example which should paint the animation on a yellow background with an Indigo color:
import 'package:flutter/material.dart';
import "package:flare_flutter/flare_actor.dart";
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flare Demo',
theme: ThemeData(
primarySwatch: Colors.yellow,
),
home: MainPage(),
);
}
}
class MainPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.yellow,
width: 100.0,
height: 100.0,
child: FlareActor(
"assets/literda_logo_anim.flr",
alignment: Alignment.center,
fit: BoxFit.contain,
animation: "Reveal",
color: Colors.indigo,
));
}
}
Here is the output:
Here is the flutter doctor
output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.13.6 17G5019, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.2)
[✓] VS Code (version 1.30.2)
[✓] Connected device (1 available)
can I pass dynamic values as parameters to animations? an example of this is for building performance charts, for example.
FlareActor(
"assets/Penguin.flr",
alignment: Alignment.center,
fit: BoxFit.cover,
animation: "walk",
isPaused: _isPaused,
)
Step :
The Animation not running
Reason:
The method updatePlayState() In FlareActorRenderObject
_frameCallbackID must set null after cancelFrameCallbackWithId
if (_frameCallbackID != null) {
SchedulerBinding.instance.cancelFrameCallbackWithId(_frameCallbackID);
_frameCallbackID = null; // reset _frameCallbackID
}
The _frameCallbackID will be recreate when isPaused = false
Please Help to fixed it, Thank you
class Pandy extends StatefulWidget {
@override
PandyS createState() => PandyS();
}
class PandyS extends State<Pandy> implements FlareController {
ActorAnimation _rock;
String animationName = "Untitled";
int start;
void initialize(FlutterActorArtboard artboard) {
_rock = artboard.getAnimation("Untitled");
artboard.advance(2.0);
print('initialize');
start = DateTime.now().millisecondsSinceEpoch;
}
void setViewTransform( viewTransform) {
// print('setViewTransform ${_rock.animatedComponents}');
}
bool advance(FlutterActorArtboard artboard, double elapsed) {
// _rock.apply(1.0, artboard, 0.5);
var now = DateTime.now().millisecondsSinceEpoch;
if ((now - start) > 3000) {
// setState(() {
// animationName = "1";
// });
} else {
print('advances ${_rock.isLooping} ${(now - start)}');
}
return false;
}
Widget build(BuildContext context) {
print('flr build');
var flr = new FlareActor("images/test.flr",
alignment:Alignment.center,
fit:BoxFit.contain,
animation: animationName,
controller: this,
isPaused: false,
callback: (r) {
print(r);
},
);
return flr;
}
}
Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (30584): more information in this error message to help you determine and fix the underlying cause.
I/flutter (30584): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (30584): https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (30584):
I/flutter (30584): When the exception was thrown, this was the stack:
I/flutter (30584): #2 Color.withOpacity (dart:ui/painting.dart:187:12)
I/flutter (30584): #3 FlutterGradientFill.getPaint (package:flarepack/flare.dart:239:30)
I/flutter (30584): #4 FlutterActorShape.draw (package:flarepack/flare.dart:126:31)
I/flutter (30584): #5 FlutterActorArtboard.draw (package:flarepack/flare.dart:526:18)
I/flutter (30584): #6 FlareActorRenderObject.paint (package:flarepack/flare_actor.dart:422:17)
I/flutter (30584): #7 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
I/flutter (30584): #8 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter (30584): #9 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter (30584): #10 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
I/flutter (30584): #11 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter (30584): #12 _RenderFlex&RenderBox&ContainerRenderObjectMixin&RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2273:15)
I/flutter (30584): #13 RenderFlex.paint (package:flutter/src/rendering/flex.dart:931:7)
I/flutter (30584): #14 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
I/flutter (30584): #15 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter (30584): #16 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter (30584): #17 RenderDecoratedBox.paint (package:flutter/src/rendering/proxy_box.dart:1955:11)
I/flutter (30584): #18 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
I/flutter (30584): #19 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter (30584): #20 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter (30584): #21 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7)
I/flutter (30584): #22 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
I/flutter (30584): #23 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
I/flutter (30584): #24 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
I/flutter (30584): #25 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
I/flutter (30584): #26 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13)
I/flutter (30584): #27 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (30584): #28 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (30584): #29 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (30584): #30 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (30584): #31 _invoke (dart:ui/hooks.dart:154:13)
I/flutter (30584): #32 _drawFrame (dart:ui/hooks.dart:143:3)
I/flutter (30584): (elided 2 frames from class _AssertionError)
Animation file from flare is https://www.2dimensions.com/a/sagarshah/files/flare/logo_flutter
Error stack on executing the example similar to the one provided by the readme.md:
I/flutter (16137): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (16137): The following _CompileTimeError was thrown building MyHomePage(state: _MyHomePageState#74088):
I/flutter (16137): 'package:flare_flutter/flare_actor.dart': error: line 188 pos 21:
I/flutter (16137): Flare-Flutter/lib/flare_actor.dart:188:21: Error: A value of type 'dart.core::int' can't be assigned
I/flutter (16137): to a variable of type 'dart.core::double'.
I/flutter (16137): Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
I/flutter (16137): _lastFrameTime = 0;
I/flutter (16137): ^
I/flutter (16137): _lastFrameTime = 0;
I/flutter (16137): ^
I/flutter (16137):
I/flutter (16137): When the exception was thrown, this was the stack:
I/flutter (16137): 0 FlareActorRenderObject.isPlaying= (package:flare_flutter/flare_actor.dart:169:13)
I/flutter (16137): 1 FlareActor.createRenderObject (package:flare_flutter/flare_actor.dart:42:27)
I/flutter (16137): 2 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4289:28)
I/flutter (16137): 3 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): 4 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): 5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): 6 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): 7 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): 8 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #12 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #13 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #17 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #18 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #19 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #21 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #24 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #27 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #28 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #29 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #30 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #31 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #33 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #34 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #35 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #36 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #37 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #38 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #40 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #41 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #42 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #43 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #47 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #48 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #49 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #50 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #51 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #52 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #53 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #54 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #57 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #58 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #59 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #60 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #62 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #63 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #67 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #68 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #69 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #70 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #71 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #72 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #73 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #74 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #75 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #76 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #78 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #79 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #80 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #82 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #83 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #84 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #85 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #89 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #90 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #91 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #92 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #93 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #94 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #95 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #96 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #97 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #98 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #99 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #100 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4772:32)
I/flutter (16137): #101 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #102 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #103 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:493:16)
I/flutter (16137): #104 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #105 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #107 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #108 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #109 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #110 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #111 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #113 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #114 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #115 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #116 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #117 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #118 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #119 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #120 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #121 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #122 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #123 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #124 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #125 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #126 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #127 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #129 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #130 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #131 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #132 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #133 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #134 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #135 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #136 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #137 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #138 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
D/ (16137): HostConnection::get() New Host Connection established 0xe744ec40, tid 16156
D/EGL_emulation(16137): eglMakeCurrent: 0xe7a69aa0: ver 2 0 (tinfo 0xe744fa40)
I/flutter (16137): #139 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #140 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #141 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #142 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #143 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #144 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #145 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #146 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #148 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #149 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #150 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #151 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #152 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #153 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #154 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #155 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #156 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #157 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #158 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #159 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #160 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #161 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #162 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #163 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #164 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #165 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #166 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #167 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #168 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #169 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #170 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #171 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #172 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #173 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #174 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #175 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #176 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #177 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #178 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #179 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #180 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #181 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4667:14)
I/flutter (16137): #182 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #183 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #184 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #185 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #186 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #187 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #188 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #189 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #190 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #191 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #192 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #193 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #194 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #195 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #197 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #198 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #199 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #200 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #201 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #202 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #203 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #204 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #205 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #206 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #207 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #208 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #209 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #210 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #211 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #212 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #213 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #214 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #215 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #216 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #217 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #218 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #219 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #220 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #221 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #222 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #223 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #224 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #225 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #226 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #227 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #228 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #229 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #230 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #231 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #232 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #233 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #234 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #235 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #236 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #237 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #238 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3782:11)
I/flutter (16137): #239 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #240 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #241 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #242 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3666:16)
I/flutter (16137): #243 Element.rebuild (package:flutter/src/widgets/framework.dart:3508:5)
I/flutter (16137): #244 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3635:5)
I/flutter (16137): #245 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3630:5)
I/flutter (16137): #246 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2920:14)
I/flutter (16137): #247 Element.updateChild (package:flutter/src/widgets/framework.dart:2723:12)
I/flutter (16137): #248 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:884:16)
I/flutter (16137): #249 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:855:5)
I/flutter (16137): #250 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:801:17)
I/flutter (16137): #251 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2235:19)
I/flutter (16137): #252 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:800:13)
I/flutter (16137): #253 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:689:7)
I/flutter (16137): #254 runApp (package:flutter/src/widgets/binding.dart:731:7)
I/flutter (16137): #255 main (file:///home/th4t/test_flare/lib/main.dart:3:16)
I/flutter (16137): #256 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:286:19)
I/flutter (16137): #257 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:169:12)
I/flutter (16137): ════════════════════════════════════════════════════════════════════════════════════════════════════
compiler message: Flare-Flutter/lib/flare_actor.dart:188:21: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _lastFrameTime = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_shape.dart:168:23: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: double maxStroke = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:37:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[0] = 1;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:38:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[1] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:39:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[2] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:40:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[3] = 1;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:41:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[4] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:42:24: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[5] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:53:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 1;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:54:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:55:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:56:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 1;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:57:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 0;
compiler message: ^
compiler message: Flare-Flutter/lib/flare/actor_skin.dart:58:30: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[bidx++] = 0;
compiler message: ^
7.1s
How to undo or delete without keyboard.please make flare more tablet friendly.
Hey :) I'm having trouble implementing a feature for flutter_splash_screen, my idea was to make a loop animation idle
until the initialization of the app is done, then switch to a "finish animation" before pushing the next screen. Problem is that the callback is not called for a loop animation, so I do know when a lap is finished to chain the second animation in a smooth way.
I guess my only way is the FlareController, do you have some code somewhere that does similar things ?
In any way I think it will be nice to have a finishedCallback
and a loopCallback
, will be very handy :) or at least that the callback is called on each lap
Hi
I have a Flare file with two animations: idle and moving. Idle is just a static figure, with no movement.
If in Flutter I change the animation assigned to the actor from moving to idle, nothing happens and it still shows the moving one.
The only way I've found of fixing this was adding "fake" keyframes to the idle animation.
Is this the expected behaviour?
The sample code (dirty one, I was playing around 😄)
class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
static const double STEP = 300;
static const String ANIMATION_IDLE = "Idle";
static const String ANIMATION_MOVING = "MovingRight";
AnimationController _controller;
double _currentSize = 100;
String _animation = ANIMATION_IDLE;
@override
void initState() {
super.initState();
_controller =
AnimationController(vsync: this, duration: Duration(seconds: 1));
_controller.addListener(() {
setState(() {
if (_controller.status == AnimationStatus.completed) {
_animation = ANIMATION_IDLE;
}
});
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
Container(),
Container(
margin: EdgeInsets.only(bottom: 130),
height: 150,
width: _currentSize + (_controller.value ?? 0) * STEP,
decoration: BoxDecoration(
color: Colors.green,
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(10),
topRight: Radius.circular(10),
),
),
),
Positioned(
left: -130,
child: Container(
width: 160,
height: 240,
margin: EdgeInsets.only(
bottom: 240,
left: _currentSize + (_controller.value ?? 0) * STEP),
child: FlareActor(
"assets/golf.flr",
animation: _animation,
),
),
),
Row(
children: <Widget>[
RaisedButton(
child: Text("Move!"),
onPressed: () {
_controller.forward(from: 0);
_animation = ANIMATION_MOVING;
},
),
RaisedButton(
child: Text("Reset!"),
onPressed: () {
setState(() {
_controller.reset();
});
},
),
],
),
],
alignment: AlignmentDirectional.bottomStart,
),
);
}
}
I'm trying to fork a design on Flare, it prompts me for a new file name and once it creates the file the workspace is empty.
Using Chrome on MacOS
On Flare online tool, there's an option of playing multiple animation sets simultaneously. Like you make several animation and hit play button next to each of them. How do we do that in dart?
Here is a way to reproduce it https://github.com/jaumard/flare_checkbox/tree/bug/noOn/example
Basically my checkbox is calling the animation "On" and "Off", but when it calls "On" we don't see any animation (tested on iOS simulator). Some animation are working, some other not, so you have 2 animations on the repo, one working and the other not.
Let me know what you think guys :) maybe I'm just doing shit ^^
I want it first display the animation and then do it in reverse, but i have no idea how to accomplish this
Hi, first I would like to thank you for this amazing project, truly amazing :)
I/flutter (10799): ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (10799): The following _CastError was thrown during a scheduler callback:
I/flutter (10799): type 'FlutterColorFill' is not a subtype of type 'ActorNode' in type cast
I/flutter (10799):
I/flutter (10799): When the exception was thrown, this was the stack:
I/flutter (10799): #0 KeyFrameOpacity.setValue (package:flare_dart/animation/keyframe.dart:371:32)
I/flutter (10799): #1 KeyFrameNumeric.applyInterpolation (package:flare_dart/animation/keyframe.dart:134:5)
I/flutter (10799): #2 PropertyAnimation.apply (package:flare_dart/animation/actor_animation.dart:207:21)
I/flutter (10799): #3 ComponentAnimation.apply (package:flare_dart/animation/actor_animation.dart:248:27)
I/flutter (10799): #4 ActorAnimation.apply (package:flare_dart/animation/actor_animation.dart:403:26)
I/flutter (10799): #5 FlareActorRenderObject.beginFrame (package:flare_flutter/flare_actor.dart:328:23)
I/flutter (10799): #6 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:988:15)
I/flutter (10799): #7 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:904:11)
I/flutter (10799): #8 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:367:8)
I/flutter (10799): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:902:17)
I/flutter (10799): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:832:5)
I/flutter (10799): #14 _invoke1 (dart:ui/hooks.dart:223:10)
I/flutter (10799): #15 _beginFrame (dart:ui/hooks.dart:162:3)
I/flutter (10799): (elided 3 frames from package dart:async)
It happens when i try to transform the visibility of a FlareActor. I set the percent visible with a gesture detector.
Transform(
transform: new Matrix4.translationValues(
0.0, 50.0 * (1.0 - widget.percentVisible), 0.0),
child: new Padding(
padding: new EdgeInsets.only(top: 20.0, bottom: 10.0),
child: FlareActor(
"assets/animation.flr",
alignment: Alignment.center,
fit: BoxFit.contain,
animation: 'idle',
),
),
)
Kind regards,
Luis
In the Flare editor clipping works fine. In Flutter not anymore (the whole image is displayed and no clipping applied)
We're using flare_flutter: ^1.3.2
not sure where i'm supposed to post this.
anyways, this is the flare file after i drag in my svg:
https://www.2dimensions.com/a/alaricat/files/flare/splash/preview
here is the offending svg: https://svgshare.com/s/9uV
basically, some of it comes through but it's all fucked. i realize this is a problem you guys have been having for a while
Same of #6
Flare-Flutter/lib/flare/actor_shape.dart:138:26: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: double maxStroke = 0;
Flare-Flutter/lib/flare/actor_skin.dart:31:28: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
compiler message: _boneMatrices[0] = 1;
Hello! I have some looped animations on some screens in my app, they work when we enter the screen, but if we push
another route and then pop
the animation is frozen.
So it looks like this:
push
another route (with or without an animation, if there is an animation it works fine)pop
to SCREEN_WITH_LOOPED_ANIMATION - animation doesn't playI'm using Flutter master
channel, so ~1.4.12
and the latest flare pub 1.3.8
, works fine with 1.3.7
Any idea? Also tested with flutter beta
and stable
channel
I'm checking this https://github.com/2d-inc/Flare-Flutter/blob/master/example/favorite/lib/buttons_row.dart#L51 and I did the same on my flare_checkbox but for a checkbox you may don't want to animate the state when the widget is show for the first time. For example if state is false, playing the off animation when the widget is shown looks weird. So I'm searching a way to only show the last frame when the widget is shown, and on click play the right animation depending on the state.
Any idea how can I implement this ?
My animation starts automatically, but I cannot figure out how to restart it after it's completed.
We created Flare files from 2Dimensions Flare tool by first importing SVG files and then exporting as .flr
file.
Files are loaded using the FlareActor
from Flare-Flutter package in our app.
The issue that we are seeing is that although the files work as expected in first load, on subsequent loading of the same file they randomly lose some of the elements of the SVG file.
No exceptions/warnings are thrown that we can use to debug this issue.
Flare Flutter version:
^1.2.3
Flutter version:
Flutter 1.2.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (3 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
Hi, I was testing the flare animation for a few weeks and everything works fine, however when I build my app to a release version for Android some parts of the flare gets scrambled like the image below:
The left column show the image that's rendered the first time I open the app. When I scroll the list it seems to show the proper image (right column).
Is the design tool downloadable so I can run it on desktop ?
Create project btw ! Really huge gamechanger.
when I add a png image ,there is an error.
E/flutter (11979): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type 'ActorNode' is not a subtype of type 'ActorDrawable' in type cast
E/flutter (11979): #0 KeyFrameDrawOrder.apply (package:flare_dart/animation/keyframe.dart:450:61)
E/flutter (11979): #1 PropertyAnimation.apply (package:flare_dart/animation/actor_animation.dart:199:21)
E/flutter (11979): #2 ComponentAnimation.apply (package:flare_dart/animation/actor_animation.dart:248:27)
E/flutter (11979): #3 ActorAnimation.apply (package:flare_dart/animation/actor_animation.dart:403:26)
E/flutter (11979): #4 FlareActorRenderObject._updateAnimation (package:flare_flutter/flare_actor.dart:471:19)
E/flutter (11979): #5 FlareActorRenderObject.filename=. (package:flare_flutter/flare_actor.dart:248:11)
E/flutter (11979): #6 _rootRunUnary (dart:async/zone.dart:1132:38)
E/flutter (11979): #7 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (11979): #8 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
E/flutter (11979): #9 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
E/flutter (11979): #10 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
E/flutter (11979): #11 Future._complete (dart:async/future_impl.dart:473:7)
E/flutter (11979): #12 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
E/flutter (11979): #13 _AsyncAwaitCompleter.complete (dart:async/runtime/lib/async_patch.dart:28:18)
E/flutter (11979): #14 _completeOnAsyncReturn (dart:async/runtime/lib/async_patch.dart:294:13)
E/flutter (11979): #15 Actor.load (package:flare_dart/actor.dart)
E/flutter (11979):
E/flutter (11979): #16 FlutterActor.loadFromBundle (package:flare_flutter/flare.dart:595:18)
E/flutter (11979):
E/flutter (11979): #17 FlareActorRenderObject.filename= (package:flare_flutter/flare_actor.dart:228:13)
E/flutter (11979): #18 FlareActor.createRenderObject (package:flare_flutter/flare_actor.dart:43:9)
E/flutter (11979): #19 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4497:28)
E/flutter (11979): #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #22 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #23 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #24 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4981:32)
E/flutter (11979): #25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3746:16)
E/flutter (11979): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:3558:5)
E/flutter (11979): #29 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3715:5)
E/flutter (11979): #30 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3863:11)
E/flutter (11979): #31 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3710:5)
E/flutter (11979): #32 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #34 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3746:16)
E/flutter (11979): #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3558:5)
E/flutter (11979): #39 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3715:5)
E/flutter (11979): #40 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3710:5)
E/flutter (11979): #41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #43 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #46 SingleChildRenderObjectElement.mou
I/AwareBitmapCacher(11979): init lrucache size: 2097152 pid=11979
I/.dx.flutterapp(11979): Starting profile saver IsSaveProfileNow end.
If multiple Paths are nested under a single Shape have different keyframed values for each Path, the Shape won't invalidate any of the underlying Paths, and thus won't update.
A simple fix for this would be to add in ActorNode.update()
:
if ((dirt & TransformDirty) == TransformDirty) {
updateTransform();
if(this.parent != null && this.parent is FlutterActorShape)
{
this.parent.invalidateShape();
}
}
Failed to get the Flare dependencies because they do not run with Dart 2.1
This seems to be specific to android 8 and 8.1 ie oreo
I have tried multiple examples, any flare animation after a certain time consumes a lot of memory which results in a crash.
I have checked flutter doctor, then used profiling to track memory usage.
Tested on debugging and release both modes.
The issue still persists, the only workaround is to replace a .flr file with a gif or png.
Below is log that you get after the crash.
I/zygote (24760): Do partial code cache collection, code=30KB, data=28KB
I/zygote (24760): After code cache collection, code=30KB, data=28KB
I/zygote (24760): Increasing code cache capacity to 128KB
F/libc (24760): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb3425fa0 in tid 24785 (1.gpu), pid 24760 (ample.flaredemo)
Build fingerprint: 'motorola/potter_n/potter_n:8.1.0/OPSS28.85-13-5/2f72:user/release-keys'
Revision: 'p3b0'
ABI: 'arm'
pid: 24760, tid: 24785, name: 1.gpu >>> com.example.flaredemo <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb3425fa0
r0 98683508 r1 b3425fa0 r2 00000028 r3 00000008
r4 b3425fa0 r5 00000003 r6 b3426000 r7 98683508
r8 0000000c r9 915c9d70 sl fffffffe fp 00000001
ip 00000000 sp 986834c8 lr 98dbd229 pc b3c9ce30 cpsr 60070010
backtrace:
#00 pc 00018e30 /system/lib/libc.so (memcpy+80)
#1 pc 0063b225 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#2 pc 00636d89 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#3 pc 0063f375 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#4 pc 005d1cb5 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#5 pc 005d234b /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#6 pc 005e04bf /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#7 pc 007039c9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#8 pc 00523219 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#9 pc 0051daf5 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#10 pc 0051ddc9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#11 pc 0051df55 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#12 pc 0051dcd9 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#13 pc 0051de99 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#14 pc 004fad99 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#15 pc 004fc295 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#16 pc 000101f1 /system/lib/libutils.so (android::Looper::pollInner(int)+572)
#17 pc 0000ff1d /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+32)
#18 pc 0000c40f /system/lib/libandroid.so (ALooper_pollOnce+50)
#19 pc 004fc32f /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#20 pc 004f9f37 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#21 pc 004fb169 /data/app/com.example.flaredemo-zha4HjCGDasN2I5QRaQhfw==/lib/arm/libflutter.so (offset 0x4cb000)
#22 pc 000475cf /system/lib/libc.so (__pthread_start(void*)+22)
#23 pc 0001afe9 /system/lib/libc.so (__start_thread+32)
`
When creating a FlareActor with one specific animation I get this error: The getter 'iterator' was called on null.
This is the Flare file that causes the problem: https://www.2dimensions.com/a/uxteam/files/flare/progress_circle_v2
And this is the code, it's very simple:
import 'package:flare_flutter/flare_actor.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(color: Colors.purple),
child: Container(
height: 300,
child: FlareActor(
"assets/progress_circle.flr",
alignment: Alignment.center,
fit: BoxFit.contain,
animation: "progress",
),
),
));
}
}
This is the full error stack:
Initializing gradle... 1,2s
Resolving dependencies... 7,1s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 14,3s
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk... 2,5s
D/EGL_emulation( 7074): eglCreateContext: 0xb20b8e40: maj 3 min 0 rcv 3
D/EGL_emulation( 7074): eglMakeCurrent: 0xb20b8e40: ver 3 0 (tinfo 0x975ba5b0)
I/Choreographer( 7074): Skipped 34 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 7074): eglMakeCurrent: 0xaa805900: ver 3 0 (tinfo 0xaa803880)
I/flutter ( 7074): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter ( 7074): The following NoSuchMethodError was thrown during paint():
I/flutter ( 7074): The getter 'iterator' was called on null.
I/flutter ( 7074): Receiver: null
I/flutter ( 7074): Tried calling: iterator
I/flutter ( 7074):
I/flutter ( 7074): When the exception was thrown, this was the stack:
I/flutter ( 7074): #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
I/flutter ( 7074): #1 FlutterActorShape.path (package:flare_flutter/flare.dart:61:28)
I/flutter ( 7074): #2 FlutterActorShape.draw (package:flare_flutter/flare.dart:108:26)
I/flutter ( 7074): #3 FlutterActorArtboard.draw (package:flare_flutter/flare.dart:529:18)
I/flutter ( 7074): #4 FlareActorRenderObject.paint (package:flare_flutter/flare_actor.dart:438:17)
I/flutter ( 7074): #5 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #6 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #8 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #9 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #10 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #11 RenderDecoratedBox.paint (package:flutter/src/rendering/proxy_box.dart:1980:11)
I/flutter ( 7074): #12 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #13 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #14 _RenderCustomMultiChildLayoutBox&RenderBox&ContainerRenderObjectMixin&RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2273:15)
I/flutter ( 7074): #15 RenderCustomMultiChildLayoutBox.paint (package:flutter/src/rendering/custom_layout.dart:361:5)
I/flutter ( 7074): #16 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #17 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #18 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #19 _RenderInkFeatures.paint (package:flutter/src/material/material.dart:491:11)
I/flutter ( 7074): #20 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #21 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #22 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #23 RenderPhysicalModel.paint.<anonymous closure> (package:flutter/src/rendering/proxy_box.dart:1730:88)
I/flutter ( 7074): #24 ClipContext._clipAndPaint (package:flutter/src/painting/clip.dart:29:12)
I/flutter ( 7074): #25 ClipContext.clipRRectAndPaint (package:flutter/src/painting/clip.dart:49:5)
I/flutter ( 7074): #26 RenderPhysicalModel.paint (package:flutter/src/rendering/proxy_box.dart:1730:17)
I/flutter ( 7074): #27 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #28 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #29 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #30 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #31 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #32 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #33 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #34 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
I/flutter ( 7074): #35 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
I/flutter ( 7074): #36 PaintingContext._compositeChild (package:flutter/src/rendering/object.dart:190:7)
I/flutter ( 7074): #37 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:171:7)
I/flutter ( 7074): #38 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #39 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #40 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #41 RenderAnimatedOpacity.paint (package:flutter/src/rendering/proxy_box.dart:909:17)
I/flutter ( 7074): #42 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #43 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #44 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #45 RenderFractionalTranslation.paint (package:flutter/src/rendering/proxy_box.dart:2441:13)
I/flutter ( 7074): #46 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #47 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #48 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #49 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #50 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
I/flutter ( 7074): #51 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
I/flutter ( 7074): #52 PaintingContext._compositeChild (package:flutter/src/rendering/object.dart:190:7)
I/flutter ( 7074): #53 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:171:7)
I/flutter ( 7074): #54 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #55 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #56 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #57 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #58 RenderOffstage.paint (package:flutter/src/rendering/proxy_box.dart:2919:11)
I/flutter ( 7074): #59 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #60 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #61 _RenderStack&RenderBox&ContainerRenderObjectMixin&RenderBoxContainerDefaultsMixin.defaultPaint (package:flutter/src/rendering/box.dart:2273:15)
I/flutter ( 7074): #62 RenderStack.paintStack (package:flutter/src/rendering/stack.dart:594:5)
I/flutter ( 7074): #63 RenderStack.paint (package:flutter/src/rendering/stack.dart:602:7)
I/flutter ( 7074): #64 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #65 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #66 __RenderTheatre&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #67 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #68 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #69 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #70 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #71 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #72 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #73 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #74 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #75 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #76 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #77 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #78 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #79 RenderCustomPaint.paint (package:flutter/src/rendering/custom_paint.dart:562:11)
I/flutter ( 7074): #80 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #81 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #82 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:122:15)
I/flutter ( 7074): #83 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #84 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13)
I/flutter ( 7074): #85 RenderView.paint (package:flutter/src/rendering/view.dart:178:15)
I/flutter ( 7074): #86 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2094:7)
I/flutter ( 7074): #87 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11)
I/flutter ( 7074): #88 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5)
I/flutter ( 7074): #89 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29)
I/flutter ( 7074): #90 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19)
I/flutter ( 7074): #91 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:692:13)
I/flutter ( 7074): #92 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter ( 7074): #93 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 7074): #94 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 7074): #95 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
I/flutter ( 7074): #104 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter ( 7074): #105 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter ( 7074): #106 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter ( 7074): (elided 8 frames from package dart:async)
I/flutter ( 7074):
I/flutter ( 7074): The following RenderObject was being processed when the exception was fired:
I/flutter ( 7074): FlareActorRenderObject#03c05
I/flutter ( 7074): creator: FlareActor ← ConstrainedBox ← Container ← DecoratedBox ← Container ← MediaQuery ←
I/flutter ( 7074): LayoutId-[<_ScaffoldSlot.body>] ← CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ←
I/flutter ( 7074): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#4e969 ink renderer] ← ⋯
I/flutter ( 7074): parentData: <none> (can use size)
I/flutter ( 7074): constraints: BoxConstraints(0.0<=w<=360.0, h=300.0)
I/flutter ( 7074): size: Size(360.0, 300.0)
I/flutter ( 7074): This RenderObject has no descendants.
Hello.
firstly, this is the flare file https://www.2dimensions.com/a/uggy/files/flare/burgersplash-2/preview
secondly, there is a circle there that for some reason does not show in the preview. and when I export it, and put it in flutter, only two of all objects are shown (the bottom bun, and the top closed bun).
FYI, in the flutter app, it used to work a week ago. perhaps there was an update of some sort?
this is the code that I have been using:
`
import 'package:flare_flutter/flare_actor.dart';
FlareActor("assets/BurgerSplash 2.flr",
animation: "new_splash",
color: Colors.white,
fit: BoxFit.contain,
alignment: Alignment.center),`
My flare animation never appears. The screen are blank.
Pubspec:
flare_flutter: ^1.3.6
assets:
main.dart:
FlareActor("OpacityLogo.flr", alignment:Alignment.center, fit:BoxFit.contain, animation: "resortesCar"))
Animation: https://www.2dimensions.com/a/Fernando/files/flare/opacitylogo
can anybody help me?
Thanks.
Google translate.
I know that you can change some properties for the AnimationActor like the color for example, but can i change the speed for the moving object from flutter or the path of its motion?
Thanks
Right now a FlareActor
can be initialized only with a path of a file from the rootBundle.
I think it would be really useful to support a few other loading modes (e.g. network, string, bytes, ...)
I saw that the FlutterActor
is the thing that actually is being loaded async. one possibile approach is to have a constructor with the following signature
FlareActor.asyncBytes(Future<Uint8List> Function() loadBytes, {void Function() onCancel});
The onCancel function would be useful in order to abort a potentially long running loading operation (for example from the network) if the render object has been disposed in the meantime.
I'm creating a progress percentage animation, where I have an animation with a total of 100 frames at 60 FPS, each frame corresponding to 1%, so I want to animate until a specific frame and then stop.
I got this working by doing this:
class ProgressCircleState extends State<ProgressCircle>
implements FlareController {
ActorAnimation _animation;
@override
Widget build(BuildContext context) {
return FlareActor(
...
controller: this,
);
}
@override
bool advance(FlutterActorArtboard artboard, double elapsed) {
_animation.apply(widget.progress / 60, artboard, .05);
return true;
}
@override
void initialize(FlutterActorArtboard artboard) {
_animation = artboard.getAnimation("progress");
}
@override
void setViewTransform(Mat2D viewTransform) {}
}
It works, but the problem is that even after the animation reaches the frame that I need, it continues running the code at every frame and that is consuming a lot of CPU on the device.
I have noticed that if I only set the animation property when creating the actor, and let it run to 100%, it doesn't consume any CPU after it's done.
Is there a more efficient way of doing that instead of doing it frame by frame? Or maybe detect that it's completed so that I can pause it?
When I put a lot of small size FlareActor animations into a list and scroll, the app is very easy to crash.whether it's on the virtual machine pixel 2 XL (debug) or on my other real device. (release), it is easier to crash on my real device.
Also, when the FlareActor widget is in the list, it is very easy for the image to be misaligned.
Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.0/NYC/4729343:userdebug/dev-keys' Revision: '0' ABI: 'x86' pid: 28078, tid: 28095, name: 1.gpu >>> com.example.flutterrdiary <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4400f464 eax 00000000 ebx 8c1d7d20 ecx 00000000 edx 84d03780 esi 6da68f60 edi 4400f430 xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b eip 8ba3e6b8 ebp 8b07e038 esp 8b07e010 flags 00010206 backtrace: #00 pc 007c26b8 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #01 pc 007c23e3 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #02 pc 007c2bc4 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #03 pc 007be157 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #04 pc 007ca96c /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #05 pc 007cac9a /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #06 pc 00725ff3 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #07 pc 007269a7 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #08 pc 0073c04c /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #09 pc 007b379c /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #10 pc 007b3749 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #11 pc 006372d9 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #12 pc 0090e2a5 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #13 pc 00613a51 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #14 pc 0061939a /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #15 pc 00619796 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #16 pc 00619a72 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #17 pc 0061966e /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #18 pc 00619952 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #19 pc 005e41ff /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #20 pc 005e415e /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #21 pc 005e643e /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #22 pc 00018350 /system/lib/libutils.so (_ZN7android20SimpleLooperCallback11handleEventEiiPv+48) #23 pc 000192f7 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+1207) #24 pc 00018d74 /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+68) #25 pc 0000f77c /system/lib/libandroid.so (ALooper_pollOnce+108) #26 pc 005e6541 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #27 pc 005e2b06 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #28 pc 005e4804 /data/app/com.example.flutterrdiary-1/lib/x86/libflutter.so (offset 0x59c000) #29 pc 00074fb2 /system/lib/libc.so (_ZL15__pthread_startPv+210) #30 pc 0002026e /system/lib/libc.so (__start_thread+30) #31 pc 0001e046 /system/lib/libc.so (__bionic_clone+70) Lost connection to device.
dependencies:
flutter:
sdk: flutter
dio: ^2.0.22
json_serializable: ^2.0.2
json_annotation: ^2.0.0
build_runner: ^1.0.0
sqflite: ^1.1.1
path_provider: any
shared_preferences: ^0.5.1+1
image_picker: ^0.5.0+3
provide: ^1.0.2
flutter_svg: ^0.12.0
flare_flutter: ^1.3.4
encrypt: ^2.0.0
cached_network_image: ^0.7.0
flutter_webview_plugin: ^0.3.0+2
flutter_bugly: ^0.1.9
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.648], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] IntelliJ IDEA Ultimate Edition (version 2018.2)
[√] Connected device (1 available)
• No issues found!
Process finished with exit code 0
https://ibb.co/5MVDHjB - unexpected result
https://ibb.co/bvpBV1S - normal result
This problem happens when this animation placed in ListView. But I noticed the corruption like that with other animation that placed in the center of the page. Sometimes it works as expected, but 50 % of time it works unexpectedly
I've tested on several devices - the result is the same
Xiaomi Redmi Note 4 android 7.1
Xiaomi Redmi 5A android 7.1
Samsung S7 android 8.0
version of flare - 1.3.2
It happens most of the time in debug build.
Rarely - on release build, but also happens
Hi!
When trying to run an animation of my Flare file, the following exception is thrown:
I/flutter (19843): ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (19843): The following _CastError was thrown during a scheduler callback:
I/flutter (19843): type 'ActorNode' is not a subtype of type 'ActorDrawable' in type cast
I/flutter (19843):
I/flutter (19843): When the exception was thrown, this was the stack:
I/flutter (19843): #0 KeyFrameDrawOrder.apply
package:flare_dart/animation/keyframe.dart:450
I/flutter (19843): #1 KeyFrameDrawOrder.applyInterpolation
package:flare_dart/animation/keyframe.dart:443
I/flutter (19843): #2 PropertyAnimation.apply
package:flare_dart/animation/actor_animation.dart:207
I/flutter (19843): #3 ComponentAnimation.apply
package:flare_dart/animation/actor_animation.dart:248
I/flutter (19843): #4 ActorAnimation.apply
package:flare_dart/animation/actor_animation.dart:403
I/flutter (19843): #5 FlareActorRenderObject.beginFrame
package:flare_flutter/flare_actor.dart:328
I/flutter (19843): #6 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback
package:flutter/…/scheduler/binding.dart:1008
I/flutter (19843): #7 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame.<anonymous closure>
I/flutter (19843): #8 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/lib/compact_hash.dart:367:8)
I/flutter (19843): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame
package:flutter/…/scheduler/binding.dart:922
I/flutter (19843): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleBeginFrame
package:flutter/…/scheduler/binding.dart:852
I/flutter (19843): #14 _invoke1 (dart:ui/hooks.dart:233:10)
I/flutter (19843): #15 _beginFrame (dart:ui/hooks.dart:172:3)
I/flutter (19843): (elided 3 frames from package dart:async)
I/flutter (19843):
I/flutter (19843):
I/flutter (19843): This exception was thrown in the context of a scheduler callback. When the scheduler callback was
I/flutter (19843): _registered_ (as opposed to when the exception was thrown), this was the stack:
I/flutter (19843): #0 new _FrameCallbackEntry.<anonymous closure>
package:flutter/…/scheduler/binding.dart:108
I/flutter (19843): #1 new _FrameCallbackEntry
package:flutter/…/scheduler/binding.dart:111
I/flutter (19843): #2 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleFrameCallback
package:flutter/…/scheduler/binding.dart:444
I/flutter (19843): #3 FlareActorRenderObject.updatePlayState
package:flare_flutter/flare_actor.dart:181
I/flutter (19843): #4 FlareActorRenderObject.beginFrame
package:flare_flutter/flare_actor.dart:305
I/flutter (19843): #5 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback
package:flutter/…/scheduler/binding.dart:1008
I/flutter (19843): #6 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame.<anonymous closure>
package:flutter/…/scheduler/binding.dart:924
I/flutter (19843): #7 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/lib/compact_hash.dart:367:8)
I/flutter (19843): #8 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame
I/flutter (19843): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleBeginFrame
package:flutter/…/scheduler/binding.dart:852
I/flutter (19843): #13 _invoke1 (dart:ui/hooks.dart:233:10)
I/flutter (19843): #14 _beginFrame (dart:ui/hooks.dart:172:3)
I/flutter (19843): (elided 3 frames from package dart:async)
I/flutter (19843): ════════════════════════════════════════════════════════════════════════════════════════════════════
Steps to reproduce:
FlareActor('images/logo.flr', animation: 'intro')
Versions:
I'm using the newest version of the flare_flutter
package (1.3.3).
Output of flutter doctor -v
:
[✓] Flutter (Channel master, v1.3.10-pre.42, on Linux, locale en_US.UTF-8)
• Flutter version 1.3.10-pre.42 at /home/marcel/flutter
• Framework revision c942ed4813 (28 minutes ago), 2019-03-14 09:26:44 -0700
• Engine revision 8b1a299ed5
• Dart version 2.2.1 (build 2.2.1-dev.1.0 674fd0e060)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/marcel/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• Java binary at:
/home/marcel/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.51
99772/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1248-b01)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit
https://flutter.io/setup/#android-setup for detailed instructions.
[✓] Android Studio (version 3.1)
• Android Studio at /opt/android-studio
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1024-b01)
[✓] Android Studio (version 3.3)
• Android Studio at
/home/marcel/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.51
99772
• Flutter plugin version 32.0.1
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1248-b01)
[!] Android Studio (version 3.0)
• Android Studio at /opt/android-studio-preview
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.3)
• IntelliJ at
/home/marcel/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/183.5429.30
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.30.2)
• VS Code at /usr/share/code
• Flutter extension version 2.24.0
[✓] Connected device (1 available)
• ONEPLUS A6013 • ca50b254 • android-arm64 • Android 9 (API 28)
! Doctor found issues in 3 categories.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.