opt: unread badge

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-07 17:39:36 +08:00
parent c1ce704e4e
commit 1a30e542a9
2 changed files with 16 additions and 12 deletions

View File

@@ -116,12 +116,14 @@ class _HomePageState extends State<HomePage>
DynamicBadgeMode.number
? 24
: 32,
child: Badge(
label: _mainController.msgBadgeMode ==
DynamicBadgeMode.number
? Text(_mainController.msgUnReadCount.value
.toString())
: null,
child: IgnorePointer(
child: Badge(
label: _mainController.msgBadgeMode ==
DynamicBadgeMode.number
? Text(_mainController.msgUnReadCount.value
.toString())
: null,
),
),
),
],

View File

@@ -465,12 +465,14 @@ class _MainAppState extends State<MainApp>
DynamicBadgeMode.number
? 24
: 32,
child: Badge(
label: _mainController.msgBadgeMode ==
DynamicBadgeMode.number
? Text(_mainController.msgUnReadCount.value
.toString())
: null,
child: IgnorePointer(
child: Badge(
label: _mainController.msgBadgeMode ==
DynamicBadgeMode.number
? Text(_mainController.msgUnReadCount.value
.toString())
: null,
),
),
),
],