lottie-flutter icon indicating copy to clipboard operation
lottie-flutter copied to clipboard

I can't load assets from local modules, the asset folder scope is always the main module one

Open albert0m opened this issue 3 years ago • 1 comments

I imported the module in a local module and I always got the error about the asset missing, until I realized that the scope where the module looked for was the main app one. As soon as I moved the json in the main asset folder, it worked.

albert0m avatar Nov 15 '21 21:11 albert0m

@xvrh can you take a look at this issue?

- assets
-- this-work.json
- lib
-- main.dart
- modules
-- some_module
--- assets
---- this-does-not-work.json
--- here.dart

here.dart:

Lottie.asset( 'assets/this-does-not-work.json, ), Lottie.asset( 'assets/this-work.json, ),

simonpham avatar Apr 22 '22 08:04 simonpham