Skip to content

Commit

Permalink
update readme and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnySaltyFish committed Jul 9, 2023
1 parent cd5c19f commit 748b836
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ booleanExample = true



<img src="screenshot.png" alt="Example" style="zoom: 25%;" />
<img src="screenshot.jpg" alt="Example" style="zoom: 15%;" />

您可以点击 [这里下载demo体验](demo.apk)(Debug 包,相较于 release 包较卡顿)

Expand Down Expand Up @@ -280,6 +280,7 @@ CompositionLocalProvider(LocalDataSaver provides dataSaverXXX){
}
}
```
其中,MMKV 本身不支持感知数据变化,因此它的数据变化是 `DataSaverMMKV` 手动提交的。如果你在使用 MMKV 时需要感知数据变化,那么需要调用 `DataSaverMMKV::saveData` 来做数据保存才可以。
请注意,当新数据为 null 时,会有以下情况:
- 当使用 `rememberDataSaverState`
Expand Down
2 changes: 1 addition & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Switch(checked = booleanExample, onCheckedChange = {


<center>
<img src="screenshot.png" alt="Example" style="zoom: 25%;" /></center>
<img src="screenshot.jpg" alt="Example" style="zoom: 15%;" /></center>

You can download the demo [here](demo.apk).

Expand Down
Binary file added screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot.png
Binary file not shown.

0 comments on commit 748b836

Please sign in to comment.