How to read data from simple spreadsheet in Flutter?

Posted by Jennifer | Updated on

Want to read data from simple spreadsheet in Flutter? I made it work using async and await as can be seen in the following. Important as well is to declare the asset file in your pubspec.yaml like:

Then declare both functions and just call loadCSV() when you want to load the data.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers