Flare-flutter: LateInitializationError

Created on 17 Mar 2021  ยท  6Comments  ยท  Source: 2d-inc/Flare-Flutter

I got following error using:
flare_flutter: ^3.0.0-nullsafety.0

โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by rendering library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following LateError was thrown during paint():
LateInitializationError: Field '_setupAABB@322245341' has not been initialized.

The relevant error-causing widget was
FlareActor
lib\card.dart:126
When the exception was thrown, this was the stack
0 FlareActorRenderObject._setupAABB (package:flare_flutter/flare_actor.dart)
package:flare_flutter/flare_actor.dart:1
1 FlareActorRenderObject.aabb
package:flare_flutter/flare_actor.dart:221
2 FlareRenderBox.paint
package:flare_flutter/flare_render_box.dart:175
3 RenderObject._paintWithContext
package:flutter/โ€ฆ/rendering/object.dart:2322
4 PaintingContext.paintChild
package:flutter/โ€ฆ/rendering/object.dart:189
...
The following RenderObject was being processed when the exception was fired: FlareActorRenderObject#eb411
RenderObject: FlareActorRenderObject#eb411
parentData: (can use size)
constraints: BoxConstraints(0.0<=w<=179.7, h=136.7)
size: Size(179.7, 136.7)
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

It only happened for one of my .flr files, however, on previous versions of flare_flutter there was no error. I can probably fix this by redrawing that .flr file, however, this problem might stil be worth fixing.

Most helpful comment

Please give flare_flutter: 3.0.0-nullsafety.1 a shot, the issue should be resolved!

All 6 comments

Hey @FredslundMagnus thanks for reporing this. Could you post the file here or send it to [email protected] if it's a private file?

Hey @luigi-rosso I have sent the file to your mail, if a link is good enough then:
https://flare.rive.app/a/MagnusF/files/flare/timecol

I am having the same issue

Please give flare_flutter: 3.0.0-nullsafety.1 a shot, the issue should be resolved!

Please give flare_flutter: 3.0.0-nullsafety.1 a shot, the issue should be resolved!

This resolved my issue. Thank you ๐Ÿ‘

Glad to hear it! Thanks for reporting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nisimjoseph picture nisimjoseph  ยท  4Comments

izzatzr picture izzatzr  ยท  4Comments

BrainRayChristensen picture BrainRayChristensen  ยท  7Comments

marcelgarus picture marcelgarus  ยท  4Comments

EArminjon picture EArminjon  ยท  7Comments