Skip to content

Commit a0be8f5

Browse files
committed
README.md
1 parent 8815d98 commit a0be8f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# DataStore-sample
22
DataStore-sample
33

4+
- Preferences DataStore [Working with Preferences DataStore Codelab](https://developer.android.com/codelabs/android-preferences-datastore#0).
5+
- Using [Jetpack Compose](https://developer.android.com/jetpack/compose) for UI.
6+
- Toggle dark mode / light model.
7+
- StateFlow, Coroutines Flow.
8+
9+
> DataStore is a new and improved data storage solution aimed at replacing SharedPreferences. Built on Kotlin coroutines and Flow, DataStore provides two different implementations: Proto DataStore, that lets you store typed objects (backed by protocol buffers) and Preferences DataStore, that stores key-value pairs. Data is stored asynchronously, consistently, and transactionally, overcoming some of the drawbacks of SharedPreferences.
410
511
<p align="center">
612
<img src="demo.gif" height="480" >

0 commit comments

Comments
 (0)