Skip to content

error in 1.8.0 or bigger #204

@akilinomendez

Description

@akilinomendez

Hi, running the same flr in 1.7.3 dont have errors in the 1.8.1 i have this error:

════════ Exception caught by rendering library ═════════════════════════════════
The following StackOverflowError was thrown during paint():
Stack Overflow

The relevant error-causing widget was
FlareActor
lib\main.dart:46
When the exception was thrown, this was the stack
#0 _TypedDoubleListMixin.setRange (dart:typed_data-patch/typed_data_patch.dart:752:3)
#1 ActorArtboard.artboardAABB
package:flare_dart/actor_artboard.dart:657
#2 FlutterActorLayerEffectRenderer.draw
package:flare_flutter/flare.dart:1320
#3 FlutterActorLayerEffectRenderer.drawPass
package:flare_flutter/flare.dart:1526
#4 FlutterActorLayerEffectRenderer.draw
package:flare_flutter/flare.dart:1363
...
The following RenderObject was being processed when the exception was fired: FlareActorRenderObject#dd552
RenderObject: FlareActorRenderObject#dd552
parentData: (can use size)
constraints: BoxConstraints(w=533.3, h=320.0)
size: Size(533.3, 320.0)
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
Stack Overflow
The relevant error-causing widget was
FlareActor
lib\main.dart:46
════════════════════════════════════════════════════════════════════════════════

The main code:

void main() {

runApp(MyApp());
}

class MyApp extends StatelessWidget {
// This widget is the root of your application.
@OverRide
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]);
SystemChrome.setEnabledSystemUIOverlays([]);
return MaterialApp(
debugShowCheckedModeBanner: false,
title: testFlare',
theme: ThemeData(primarySwatch: Colors.blue),
home: MyHomePage(),
)
}
}

class MyHomePage extends StatefulWidget {
@OverRide
_MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State {
@OverRide
Widget build(BuildContext context) {
return new FlareActor("assets/ciclo_lanzarote.flr", alignment:Alignment.center, fit:BoxFit.contain, animation:"ciclo");
}
}

any ideas;

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions