📱 Chat responsive
This commit is contained in:
parent
3c621187a7
commit
afc49a7a2a
@ -306,20 +306,26 @@ class _ChatRoomScreenState extends State<ChatRoomScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ChatMessage(
|
return Align(
|
||||||
data: message,
|
alignment: Alignment.centerLeft,
|
||||||
isMerged: canMerge,
|
child: Container(
|
||||||
hasMerged: canMergePrevious,
|
constraints: BoxConstraints(maxWidth: 480),
|
||||||
isPending: _messageController.unconfirmedMessages.contains(message.uuid),
|
child: ChatMessage(
|
||||||
onReply: (value) {
|
data: message,
|
||||||
_inputGlobalKey.currentState?.setReply(value);
|
isMerged: canMerge,
|
||||||
},
|
hasMerged: canMergePrevious,
|
||||||
onEdit: (value) {
|
isPending: _messageController.unconfirmedMessages.contains(message.uuid),
|
||||||
_inputGlobalKey.currentState?.setEdit(value);
|
onReply: (value) {
|
||||||
},
|
_inputGlobalKey.currentState?.setReply(value);
|
||||||
onDelete: (value) {
|
},
|
||||||
_inputGlobalKey.currentState?.deleteMessage(value);
|
onEdit: (value) {
|
||||||
},
|
_inputGlobalKey.currentState?.setEdit(value);
|
||||||
|
},
|
||||||
|
onDelete: (value) {
|
||||||
|
_inputGlobalKey.currentState?.deleteMessage(value);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user