active conversations cubit and blocmapcubit

This commit is contained in:
Christien Rioux 2024-02-09 21:17:28 -05:00
parent aa376a449d
commit 43dbf26cc0
9 changed files with 216 additions and 72 deletions

View file

@ -9,6 +9,7 @@ import '../../../account_manager/account_manager.dart';
import '../../../chat/chat.dart';
import '../../../chat_list/chat_list.dart';
import '../../../contact_invitation/contact_invitation.dart';
import '../../../contacts/contacts.dart';
import '../../../theme/theme.dart';
import '../../../tools/tools.dart';
import 'main_pager/main_pager.dart';
@ -114,10 +115,17 @@ class HomeAccountReadyState extends State<HomeAccountReady>
create: (context) => ContactInvitationListCubit(
activeAccountInfo: activeAccountInfo,
account: accountData.value)),
BlocProvider(
create: (context) => ContactListCubit(
activeAccountInfo: activeAccountInfo,
account: accountData.value)),
BlocProvider(
create: (context) => ChatListCubit(
activeAccountInfo: activeAccountInfo,
account: accountData.value)),
BlocProvider(
create: (context) => ActiveConversationsCubit(
activeAccountInfo: activeAccountInfo)),
BlocProvider(create: (context) => ActiveChatCubit(null))
],
child: responsiveVisibility(