mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-14 20:22:15 -04:00
cancellable waitingpage
This commit is contained in:
parent
cbac96de99
commit
ab9838f375
3 changed files with 38 additions and 15 deletions
|
@ -122,13 +122,19 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
Material(color: Colors.transparent, child: buildUserPanel()));
|
||||
|
||||
Widget buildRightPane(BuildContext context) {
|
||||
final activeChatLocalConversationKey =
|
||||
context.watch<ActiveChatCubit>().state;
|
||||
final activeChatCubit = context.watch<ActiveChatCubit>();
|
||||
final activeChatLocalConversationKey = activeChatCubit.state;
|
||||
if (activeChatLocalConversationKey == null) {
|
||||
return const NoConversationWidget();
|
||||
}
|
||||
return ChatComponentWidget(
|
||||
localConversationRecordKey: activeChatLocalConversationKey,
|
||||
onCancel: () {
|
||||
activeChatCubit.setActiveChat(null);
|
||||
},
|
||||
onClose: () {
|
||||
activeChatCubit.setActiveChat(null);
|
||||
},
|
||||
key: ValueKey(activeChatLocalConversationKey));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue