耀斑动画不会显示在屏幕上。我在用着:
Container(
height: 300.0,
width: 300.0,
child: FlareActor('checkmarkone.flr',
fit: BoxFit.contain,
alignment: Alignment.center,
),
),
当我运行应用程序时,我在运行控制台中收到此消息:
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Unable to load asset: checkmarkone.flr
#0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
<asynchronous suspension>
#1 FlareCacheAsset.load (package:flare_flutter/flare_cache_asset.dart:31:20)
#2 Cache.getAsset (package:flare_flutter/cache.dart:56:15)
#3 cachedActor (package:flare_flutter/flare_cache.dart:35:16)
#4 FlareRenderBox.loadFlare (package:flare_flutter/flare_render_box.dart:322:35)
#5 FlareActorRenderObject.coldLoad (package:flare_flutter/flare_actor.dart:322:20)
#6 FlareRenderBox.load (package:flare_flutter/flare_render_box.dart:272:7)
#7 FlareRenderBox.attach (package:flare_flutter/flare_render_box.dart:115:7)
#8 AbstractNode.adoptChild (package:flutter/src/foundation/node.dart:132:13)
#9 RenderObject.adoptChild (package:flutter/src/rendering/object.dart:1238:11)
#10 RenderObjectWithChildMixin.child= (package:flutter/src/rendering/object.dart:2905:7)<…>
我感谢所有建议。谢谢