lottie-flutter
lottie-flutter copied to clipboard
I can't load assets from local modules, the asset folder scope is always the main module one
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.
@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, ),