I made a simple application that allows you to take pictures offline and tag them. As soon as there is an internet connection, these data are sent to the server. I use a great backend solution - Appwrite. It works very well.
The last thing I wanted to do was user registration and login. The AppWrite SDK provides ready-made methods for creating user sessions, authentication. However, I have a problem how it should work if my application also works offline. E.g.
I would be grateful for any advice on how to achieve this. To sum up - Should user login information be written somewhere local?
The simplest way is to use shared_preferences (offline) https://pub.dev/packages/shared_preferences and firestore (online) https://firebase.flutter.dev/docs/firestore/usage/