Flutter: Json File not loading when running on connected device or built to apk

Viewed 107

My flutter app works fine when running on an android emulator. But if i run it on my device, or build to an apk and install on a device. The json read returns null

 FutureBuilder(
                future: DefaultAssetBundle.of(context)
                    .loadString('assets/diys.json'));

Any help appreciated.

1 Answers
Related