File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/content/app-architecture/design-patterns Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ with a presentation and a data layer.
9999- The presentation layer contains the ` ThemeSwitch ` widget
100100and the ` ThemeSwitchViewModel ` .
101101
102- 展示层包含 ` ThemeSwitch ` 组件和 ` ThemeSwitchViewModel ` 。
102+ 展示层包含 ` ThemeSwitch ` 组件和 ` ThemeSwitchViewModel ` 。
103103
104104- The data layer contains the ` ThemeRepository `
105105and 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)"?>
You can’t perform that action at this time.
0 commit comments