mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Fix notifications bar refresh issue
This commit is contained in:
parent
229491cd79
commit
e3ccef537a
@ -43,8 +43,8 @@ class StatusWidgetState extends SafeState<StatusWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
init();
|
|
||||||
super.initState();
|
super.initState();
|
||||||
|
init();
|
||||||
|
|
||||||
listenChangeState<NewNumberNotifsEvent>(
|
listenChangeState<NewNumberNotifsEvent>(
|
||||||
(e) => unreadNotifications = e.newNum);
|
(e) => unreadNotifications = e.newNum);
|
||||||
@ -58,5 +58,8 @@ class StatusWidgetState extends SafeState<StatusWidget> {
|
|||||||
c.findAncestorStateOfType<StatusWidgetState>();
|
c.findAncestorStateOfType<StatusWidgetState>();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => widget.child(context);
|
Widget build(BuildContext context) => Container(
|
||||||
|
key: Key("$unreadNotifications-$unreadConversations"),
|
||||||
|
child: widget.child(context),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user