flutter_chat_ui icon indicating copy to clipboard operation
flutter_chat_ui copied to clipboard

Customizable message margins in chat list

Open kentnek opened this issue 2 years ago • 1 comments

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 avatar Feb 06 '23 12:02 kentnek

@kentnek You can using this fork which have all these features, like:

customized padding from left, multiple action buttons in input bar:

image

https://gitee.com/jinfagang/flutter_chat_ui

luohao123 avatar Apr 22 '23 11:04 luohao123