Skip to content

Commit 67f5548

Browse files
committed
[modified]: 解决了格式问题
1 parent 3d84ba7 commit 67f5548

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/app-architecture/design-patterns/key-value-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ with a presentation and a data layer.
9999
- The presentation layer contains the `ThemeSwitch` widget
100100
and the `ThemeSwitchViewModel`.
101101

102-
展示层包含 `ThemeSwitch` 组件和 `ThemeSwitchViewModel`
102+
展示层包含 `ThemeSwitch` 组件和 `ThemeSwitchViewModel`
103103

104104
- The data layer contains the `ThemeRepository`
105105
and the `SharedPreferencesService`.
106106

107-
数据层包含 `ThemeRepository``SharedPreferencesService`
107+
数据层包含 `ThemeRepository``SharedPreferencesService`
108108

109109
### Theme selection presentation layer
110110

@@ -192,7 +192,7 @@ then calls `notifyListeners()` to update the UI.
192192

193193
`_toggle` 方法实现了 `toggle` 命令。
194194
该方法调用 `ThemeRepository.setDarkMode` 存储新的深色模式设置。
195-
与此同时,它修改本地状态 `_isDarkMode`
195+
与此同时,它修改本地状态 `_isDarkMode`
196196
然后调用 `notifyListeners()` 更新 UI。
197197

198198
<?code-excerpt "lib/ui/theme_config/viewmodel/theme_switch_viewmodel.dart (ThemeSwitchViewModel)"?>

0 commit comments

Comments
 (0)