Data Persistence on Flutter | raywenderlich.com

See how to persist data to storage in a Flutter app, including to files and to a remote datastore, and use a Repository interface for the persistence.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5965747-data-persistence-on-flutter

Great article. Seems that only thing that the file.exists() function needs, is a try catch block wrapper. Otherwise, exception thrown.

@bennegeek Can you please help with this when you get a chance? Thank you - much appreciated! :]

I tried reproducing the issue. I did not get an exception. The documentation for file.exists() does not mention that it throws exceptions. @rowang1. Can you attach the exception, and which device/simulator/emulator, flutter version are you using?

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!