Flutter app size increased due to too many audios

180 views Asked by At

I am working on a Flutter application and I have more than 100 sounds that users can play for educational purposes.

I am not using any server or Firebase. Every audio is almost 1 MB. With that assets folder size will be more than 100 and app size will increase too.

Can I store all the audio in the SQLite Database? Is there any other way?

1

There are 1 answers

2
Ehsan Faramarz On

You can compress your audio files using the flutter_sound package, it'll help you to decrease the size of your audio files, and don't forget to run flutter clean before compiling your app, unless your app size will be more than that size that you expect to be.