アプリを再起動すると、前までの変数の情報はすべて元に戻ってしまいます。 そこでアプリ内の設定等、次にアプリを立ち上げたときも使いたい情報は、端末内に保存しておく必要があります。 完成形 アプリを再起動しても、前までカウントしていた『5 ...
Flutterアプリ開発で、ユーザーの設定や状態を永続化したい場面はよくありますよね。そんな時に使われるのがSharedPreferencesです。しかし、クリーンアーキテクチャ(MVVMパターン)で開発する場合、単純にSharedPreferencesを直接使うのではなく、適切な抽象化が ...
I have this app where the functionality in main.dart is dependent og five values read from SharedPreferences in the initState () method: @override void initState() { super.initState(); _loadPrefs(); } ...
I have just created a new flutter application in Intellij and I chose to use Kotlin for the Android part and Swift for the iOS part. I also included shared ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する