Flutter - Best way to store a List of Objects every time I close the application?

<strong>The situation:</strong><br /> I'm very new to Flutter and mobile development, thus I don't know much about Dart; And I've read some solutions from people with...

State doesnt rebuild after new item is added to list Flutter

I'm building a Notes app and when I try to add data to the noteslist from another screen it doesn't update the UI in the main screen until I restart the app. Is there...

Flutter caching Firestore record on mobile app

I'm creating an app using Flutter &amp; Google's Firestore database. The app uses Firebase's authentications so once authenticated I grab the user document from the d...

flutter error while trying to retrieve a Map from sharedPreferences

I'm trying to retrieve a <code>Map&lt;String, List&lt;Result&gt;&gt;</code> saved in sharedPreferences using <code>sharedPreferences.setString('key', json.encode(myMap...

Save ImagePicker File path and Use it as Background

I'm working on a flutter app that allows user to set Background picture of their choice and "stays permanently till the user changes it". Using Image.file(pick...

Is it reliable to save user profile info with shared prefrences in flutter

I am wondering if its reliable to store some of the user data such as name, age, weight, Dark/Light mode ect with shared prefrences. Note that I already have st...

Anyway to enable remember me function using sharedPreferences in flutter?

Currently, I have enabled 'keep logging in' function if the user log in once successfully. However, I still want to make a 'remember me' checkbox to save the success l...

GetInt was called on null

Am I doing anything wrong with sharedPreferences in flutter. <pre><code>SharedPreferences prefs; int score; int storedScore; final String uid; StoredData(this.u...

How do I save Map&lt;String, List&lt;object&gt;&gt; in sharedPreferences in flutter?

I'm trying to save a <code>Map&lt;String, List&lt;MyObj&gt;&gt;</code> in sharedPreferences.<br> I tried to use the classic <code>sharedPreferences</code> package, but...

FlutterNativeSplash.removeAfter(initialisation) renders next screen before initialisation completes

I am using flutter_native_splash package and shared_preferneces to store my app data. I have the following code in my main.dart file. <pre><code>import 'package:fl...

How to read and use shared preference values in initstate()? I can read and use values in other widgets but not in my API which i call in initstate

I am creating a list of businesses through RestAPI in initstate. I need to use sharedpreference value as one of its parameter but when i try to load data, the sharepre...

Problems with shared preference-flutter

I wanna ask how to save state from textfield? cause i can't saving this state, after hot restart my value always reset, i just want to save state after hot restart, ca...

FLutter List Listen to Changes and save to sharedpreferences

Im wondering if there is a way to listen to any changes made to a list and update/save it on <em>sharedpreferences</em>. That way I can avoid not saving if the user cl...

Flutter: package:shared_preferences/shared_preferences.dart: Failed assertion: line 33 pos 16: key.startsWith(_prefix): is not true

I am running some unit tests on shared preferences. I was making a helper class so that we don't have to write the same code over and over again. Whatever I tr...

Flutter One time Intro Screen?

I have an intro screen for my app, but it shows every time I open the app, <strong>I need to show that for the 1st time only</strong>. How to do that? <pr...