I am using some assets during my development (fake API responses and random images), and for that, I am loading some assets.
Obviously I do not want those assets to be bundled with the release APK, how do you come around doing so?
For now, I have all assets in one pubspec.yaml
.
The end goal is to be able to run the app flutter run
and have fake backend. I know of mocking HTTP calls, but it is very difficult to wrap a full app, so now I have two different data source (one from assets and another http-based), and I call the one depending on kReleaseMode
value.
Thanks!