It depends, the video shows how to use a Local Database (with Room). GlanceStateDefinition defaults to `PreferencesGlanceStateDefinition` which uses `PreferenceStore` (the old SharedPreference). It's up to you what you want your Widget to use. If you're just displaying some (simple) user's configuration you could use that, if you're showing data stored in the database of your app, I'd recommend following the tutorial.
Thankyou ❤
Thank to you for watching and supporting the channel!
Thanks for the video. No need to use any GlanceStateDefinition at all?
It depends, the video shows how to use a Local Database (with Room). GlanceStateDefinition defaults to `PreferencesGlanceStateDefinition` which uses `PreferenceStore` (the old SharedPreference). It's up to you what you want your Widget to use. If you're just displaying some (simple) user's configuration you could use that, if you're showing data stored in the database of your app, I'd recommend following the tutorial.