r/FlutterDev • • Sep 06 '20

Plugin IT'S DONE!! Floaty_Chathead Plugin! , Create your own chathead with content like messenger.

Hello everyone!! First of all, i wanna thanks for all the support comments given during the creation of this plugin in previous post. Im happy to announce that the release version of floaty_chathead is live :)

pub.dev: https://pub.dev/packages/floaty_head

github: https://github.com/Crdzbird/floaty_chathead

The functionality are the following:

  • Customize icon of the chathead.

  • Customize the close icon.

  • Customize the close icon background.

  • Dynamic notification of each button from Android to Flutter.

  • Build head, body and footer of the view hosted inside a container that is gonna be displayed when the chathead has been tap.

  • Management State of the bubble

154 Upvotes

23 comments sorted by

14

u/Alexander_Bourne Sep 06 '20

Will the chathead be visible even if the app is closed?

19

u/Ghost_InTheDart Sep 06 '20

Yep. The chathead works independently.

1

u/Spectarion Sep 11 '20

No it won't. Chathead closes when app is closed. Service not registered: ni.devotion.floaty_head.FloatyHeadPlugin

2

u/Ghost_InTheDart Sep 17 '20

Hi!. Im sorry for the long waiting fixing this bug. The issue is finally solved :) however the deploy im gonna upload it in 1 or 2 days, i still have to comment the code and do a little refactory

1

u/Spectarion Sep 17 '20

Nice! Can't wait! Is it possible to render Flutter widgets when chathead is opened? I would love to show a little chart in there.

1

u/Ghost_InTheDart Sep 17 '20

It's possible, however due to the chathead is rendered directly from Android is neccessary to add inside the UiBuilder a section to build a graph. The most simple way that I can think about it, is to use any chart library and only map some custom params like: chart_type, color, etc

But if you know a better way to pass directly a flutter_view to the layout of android, your pull request is more than welcome!! :D

1

u/Ghost_InTheDart Sep 20 '20

Hi! The plugin has been updated, i did a refactor of all the code, also added documentation into all the classes, and validate the functionalty for the chathead to be alive even when the app has been killed. :)

However the implementation of graph still is on ToDo. Until i found an alternative to embedded directly dart into kotlin without doing a UiBuild.

1

u/Ghost_InTheDart Sep 14 '20

Thanks for reporting it. I'll work on it. However feel free to submit any other bug or error :)

3

u/MisfitMagic Sep 07 '20

Super impressive.

As an aside though, you should add your IDE settings (.idea/* and .vscode/*) to your gitignore so that other people interested in contributing won't have theirs overwritten.

4

u/Ghost_InTheDart Sep 07 '20

Thanks for the suggestion. I'll update the .gitignore to avoid those files :)

3

u/Knoan Sep 06 '20

Wow! Great! Does it work on iOS also?

7

u/powerhcm8 Sep 06 '20

Not the creator, but iOS doesn't support this kind of feature or else messenger's chathead wouldn't be exclusive to android.

5

u/Ghost_InTheDart Sep 06 '20

Sadly isn't supported, however there's a way to create an overlay, but only works inside the app. The implementation on IOS by the moment I'm unable to work on that, due to the lack of a macbook and iphone :(

4

u/powerhcm8 Sep 06 '20

I know that pain, I have some apps I can't compile for iOS because I don't have a mac.

2

u/Cobmojo Sep 07 '20

Awesome!!!! My apps thank you so much!

2

u/Ghost_InTheDart Sep 07 '20

Thanks Cobmojo! i hope that this help to other devs in everything they need and i hope that this plugin can grow even more with the help of everyone!! :D

5

u/[deleted] Sep 06 '20

Great work

5

u/erwinke22 Sep 06 '20

Amazing work! well done

4

u/Kadarach Sep 06 '20

Nice one !

4

u/[deleted] Sep 06 '20

Great work!

3

u/jsadowski Sep 06 '20

This is awesome! Thank you OP!