'Best way to work with large json files / large data in flutter
I have a flutter app that has a lot of data, that I currently have in several json files on my assets. On the startup of the app I am reading some of these files but the process of reading the files takes some seconds (5-10s). This is only the time to read the file rootBundle.loadString(path);.
To try to improve that and reduce the time to start the app I added all this information as a static list of objects, and that solve the issue. But the problem now is that my app takes a huge amount of time to build.
Some of these json file had more than 1MB and these static lists can have up to 15k items.
Is there a way to read these json faster or to make my build faster with these huge lists?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
