flutter_chat_ui
flutter_chat_ui copied to clipboard
Customizable message margins in chat list
Is your feature request related to a problem?
Horizontal margin is currently hardcoded to at least 20px:
// message.dart
return Container(
alignment: bubbleRtlAlignment == BubbleRtlAlignment.left
? currentUserIsAuthor
? AlignmentDirectional.centerEnd
: AlignmentDirectional.centerStart
: currentUserIsAuthor
? Alignment.centerRight
: Alignment.centerLeft,
margin: bubbleRtlAlignment == BubbleRtlAlignment.left
? EdgeInsetsDirectional.only(
bottom: 4,
end: isMobile ? query.padding.right : 0,
start: 20 + (isMobile ? query.padding.left : 0),
)
: EdgeInsets.only(
bottom: 4,
left: 20 + (isMobile ? query.padding.left : 0),
right: isMobile ? query.padding.right : 0,
),
What solution would you suggest?
Allow this to be configurable via ChatTheme.
Thanks!
@kentnek You can using this fork which have all these features, like:
customized padding from left, multiple action buttons in input bar:
https://gitee.com/jinfagang/flutter_chat_ui