Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: Floating Button in Front of Other Apps

how can i achive a floating action button in front of all other apps?

A java example could be: https://www.journaldev.com/14673/android-floating-widget.

What flutter widget can i use for that. Maybe there are some examples with flutter (didn't found any).

Thanks

like image 579
Constantine Avatar asked Dec 12 '18 11:12

Constantine


Video Answer


2 Answers

Apart from restriction that it won't work on IOS, there is a plugin in flutter which does the trick System Alert Window

It shows Truecaller like overlay window, over all other apps along with callback events

like image 96
Vamsi Avatar answered Oct 07 '22 06:10

Vamsi


You can perform the similar action using Draggable widget but that will work only inside the app and inside same Stateful/Stateless widget.

The reason why "drawing over other apps" is not possible in Flutter till yet is because iOS does not support this functionality. You can always log an issue at Flutter's GitHub repository

like image 32
Daksh Gargas Avatar answered Oct 07 '22 05:10

Daksh Gargas