Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:🐛Reaction widget gets cutOff when it width is greater then messag… #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaiminrana05
Copy link
Contributor

@jaiminrana05 jaiminrana05 commented Sep 29, 2023

… image message width.

Description

Before changes:
we can see that when the reaction widget width is greater than the image message width then it gets cut-off. And also for other messages, it overflows from the screen width.

Screen.Recording.2023-09-29.at.2.25.11.PM.mov

After changes:

Screen.Recording.2023-09-29.at.2.24.39.PM.mov

Note: The reaction widget background colour is change to red for getting a better understanding of this issue.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

@jaiminrana05 jaiminrana05 force-pushed the fix/reaction_widget_issue_for_image branch from 5e37239 to e83e1a9 Compare September 29, 2023 07:20
fontSize: messageReactionConfig?.reactionSize ?? 13,
fontSize: isGroupChat
? messageReactionConfig?.reactionSize ?? 13
: 13,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be static for GroupChat

@@ -103,12 +105,18 @@ class _ReactionWidgetState extends State<ReactionWidget> {
child: Row(
children: [
Text(
reactionsSet.join(' '),
isGroupChat
? reactionsSet.take(3).join(' ')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 should not be static here, we can use 3 as default value but not static

@jaiminrana05 jaiminrana05 force-pushed the fix/reaction_widget_issue_for_image branch 5 times, most recently from 0a61a38 to 605fb3d Compare October 5, 2023 15:10
@apurva010 apurva010 force-pushed the fix/reaction_widget_issue_for_image branch from 605fb3d to 9ad42b4 Compare May 14, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants