skip to Main Content

I want to save the application I made in Flutter to the phone’s memory and when I close the application and open it again, I want it to continue from where it left off. How can I do this?

I tried the sharedpreferences library but it wasn’t a good solution for my application.

In my project, there is a button positioned by the user, and these button positions are kept in the List array. Apart from that, there is an area where he can draw on the same page. I want to save this button position and the drawings.

2

Answers


  1. Use file storage to save the application state. You can use the path_provider package in Flutter to get access to the file system. You can save the application data in a file and read it when the application starts up again.

    Login or Signup to reply.
  2. if you are doing state management with GetX then you should refer to this package get_storage , currently my project is still using it to store in phone memory.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search