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

Custom Image in Bubble Icon Not Displaying in physical devices #18

Open
dhiaCodes opened this issue May 7, 2024 · 7 comments
Open

Custom Image in Bubble Icon Not Displaying in physical devices #18

dhiaCodes opened this issue May 7, 2024 · 7 comments

Comments

@dhiaCodes
Copy link

Hey there,
I'm encountering an issue when displaying a custom image within the bubble's icon attribute. When I set the bubbleIcon attribute to a custom image path, a black box appears instead of the image. However, the default icon provided by the package works perfectly.

 await BubuleHandler().startBubble(
            bubbleOptions: BubbleOptions(
              bubbleIcon: 'rounded',
            ),

The icon is set as an image file placed inside: android\app\src\main\res\drawable\

Screenshot from 2024-05-07 12-33-25

Result on a physical device:

Untitled design

PS: The custom image works fine on the virtual emulator.
Please help identify the issue.

Copy link

github-actions bot commented May 7, 2024

Hi there, welcome to Dash Bubble! 👋🏻

I'm glad you're interested in contributing to this plugin. It's a great way to learn more about the codebase and to help grow the Flutter community 💙

Your issue will be reviewed by the maintainers and worked on as soon as possible. If you have any questions or need help, feel free to reach out to me @moazelsawaf. I am always happy to assist you 💙

Happy Coding! 😊

Copy link

This issue has been open for 14 days without any activity 😔

If you're still working on this, please remove the stale label or add a comment to let us know 🙏🏻✅

Otherwise, we'll consider this issue stale and will close it in 7 days ❌

@github-actions github-actions bot added the stale This issue or pull request has no activity since a specified period of time label May 22, 2024
@dhiaCodes
Copy link
Author

Still looking for a solution.

@github-actions github-actions bot removed the stale This issue or pull request has no activity since a specified period of time label May 23, 2024
@tolgaakcaoglu
Copy link

I'm experiencing the same problem. It looks like the developer won't be helpful. I've been waiting for a solution to this issue for a while now.

@dhiaCodes
Copy link
Author

@tolgaakcaoglu, For now, the only workaround I can do is to replace the initial package bubble image that can be found in /home/$user/.pub-cache/hosted/pub.dev/dash_bubble-2.0.0/android/src/main/res/drawable with the desired image with the same filename and format.
Then regenerate build assets by running flutter pub get in the project.
This is a temporary stupid solution that works perfectly.

@lehoangbaochung
Copy link

lehoangbaochung commented Jun 12, 2024

same issue on physical devices

@tolgaakcaoglu
Copy link

@tolgaakcaoglu, For now, the only workaround I can do is to replace the initial package bubble image that can be found in /home/$user/.pub-cache/hosted/pub.dev/dash_bubble-2.0.0/android/src/main/res/drawable with the desired image with the same filename and format. Then regenerate build assets by running flutter pub get in the project. This is a temporary stupid solution that works perfectly.

You're right. I also solved my problem using this method. The package owner forgets to be helpful. The custom image error of the package needs to be fixed.

In addition, I would be very happy if they could do the following;

  • Sending an image of type Uint8List on demand

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

No branches or pull requests

3 participants