📱 Chat responsive
This commit is contained in:
parent
3c621187a7
commit
afc49a7a2a
@ -306,7 +306,11 @@ class _ChatRoomScreenState extends State<ChatRoomScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ChatMessage(
|
return Align(
|
||||||
|
alignment: Alignment.centerLeft,
|
||||||
|
child: Container(
|
||||||
|
constraints: BoxConstraints(maxWidth: 480),
|
||||||
|
child: ChatMessage(
|
||||||
data: message,
|
data: message,
|
||||||
isMerged: canMerge,
|
isMerged: canMerge,
|
||||||
hasMerged: canMergePrevious,
|
hasMerged: canMergePrevious,
|
||||||
@ -320,6 +324,8 @@ class _ChatRoomScreenState extends State<ChatRoomScreen> {
|
|||||||
onDelete: (value) {
|
onDelete: (value) {
|
||||||
_inputGlobalKey.currentState?.deleteMessage(value);
|
_inputGlobalKey.currentState?.deleteMessage(value);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user