refactor: GlobalDataCache

This commit is contained in:
guozhigq
2024-11-19 23:50:45 +08:00
parent 606a3ad495
commit 16fa467742
22 changed files with 79 additions and 84 deletions

View File

@ -173,7 +173,7 @@ class _UpPanelState extends State<UpPanel> {
if (data.type == 'up') {
EasyThrottle.throttle('follow', const Duration(milliseconds: 300),
() {
if (GlobalDataCache().enableDynamicSwitch) {
if (GlobalDataCache.enableDynamicSwitch) {
onClickUp(data, i);
} else {
onClickUpAni(data, i);