when remote page receive chat message: if minimized, top page and switch tab, otherwise add unread message count

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-06 09:40:03 +08:00
parent 87e06e974e
commit a5675c06e7
7 changed files with 78 additions and 22 deletions

View File

@ -187,6 +187,10 @@ class DesktopTabController {
state.value.tabs.clear();
state.refresh();
}
Widget? widget(String key) {
return state.value.tabs.firstWhereOrNull((tab) => tab.key == key)?.page;
}
}
class TabThemeConf {