state follower

This commit is contained in:
Christien Rioux 2024-02-20 17:57:05 -05:00
parent f936cb069e
commit 450bdf9c7c
20 changed files with 787 additions and 128 deletions

View file

@ -61,11 +61,16 @@ class HomeAccountReadyShellState extends State<HomeAccountReadyShell> {
activeAccountInfo: activeAccountInfo,
account: account)),
BlocProvider(
create: (context) => ActiveConversationsCubit(
create: (context) => ActiveConversationsBlocMapCubit(
activeAccountInfo: activeAccountInfo)),
BlocProvider(
create: (context) =>
ActiveChatCubit(null, routerCubit.setHasActiveChat))
create: (context) => ActiveChatCubit(null)
..withStateListen((event) {
routerCubit.setHasActiveChat(event != null);
})),
BlocProvider(
create: (context) => WaitingInvitationsBlocMapCubit(
activeAccountInfo: activeAccountInfo, account: account))
], child: widget.child);
})));
}