1

I am learning flutter, and I found myself with the task of creating a floating button, that by minimizing the application the button is visible and overlaps any application, is it possible to create this functionality in flutter?

Kapp
  • 11
  • 2
  • I don't sure what you want, but if you want achieve sth like `messenger bubbles`, you can find answer in [here](https://stackoverflow.com/questions/50630133/how-to-implement-floating-chat-heads-in-flutter) – Sam Chan Jan 07 '22 at 02:22
  • Thank you very much, you have helped me get closer to an answer, if I add a functional button on an android platform, will this button work the same on ios? – Kapp Jan 07 '22 at 18:20
  • if you are using platform-channels to define some function, you need to do it both android and IOS platform. In your case, I afraid It is only work on android platform since I do not find any support in IOS platform. – Sam Chan Jan 10 '22 at 01:45

1 Answers1

0

You should use Scaffold and there's a parameter called floatingActionButton. There you can add a button and it definitely won't overlay anything. You should also search for SafeArea and Listview/SingleChildScrollView. These are great widgets for avoid overlays. Flutter has a great documentation so you can always look up a widget in google and there will be always something.

magic
  • 31
  • 5
  • Thank you very much for your comment, however, I already have all the functionality of the button created within the application, what I really want is that this button continues to work even with the application minimized, as to give you an example, something like the messenger bubbles – Kapp Jan 06 '22 at 22:03
  • Oh, I see. Sorry, but I don't know the answer for that but I'm not sure if Flutter is even flexible enough for this kind of usage. I'd guess not but there are always a lot of new feature so... Good luck for finding the answer, I hope somebody can help :) – magic Jan 06 '22 at 22:09
  • Thank you very much for taking the time to try to resolve this issue! : D – Kapp Jan 06 '22 at 22:17
  • Any progress on this? I want to do the same thing – Bernardin Dezius May 02 '22 at 17:14