2

Is it possible to create a widget that floats in the background ( i.e have a floating app when the user presses the home button)?

I tried using the system_alert_window ( https://pub.dev/packages/system_alert_window), however, it only allows text and button to float in the background, no other flutter widget could have been floated.

The images shown below are what I'm trying to achieve hereenter image description here

enter image description here

Jiwa Chhetri
  • 107
  • 7
  • 2
    What you are looking for is 'Picture In Picture' (PIP). – Vamsi Jul 29 '20 at 05:20
  • 1
    Duplicate of https://stackoverflow.com/questions/54763337/how-do-you-do-picture-in-picture-using-flutter/54764010 – Vamsi Jul 29 '20 at 05:22
  • 1
    Does this answer your question? [How do you do picture in picture using flutter?](https://stackoverflow.com/questions/54763337/how-do-you-do-picture-in-picture-using-flutter) – Vamsi Jul 31 '20 at 18:25

1 Answers1

1

AFAIK, there is an available package of exactly what you needed. I suggest to explore pip_view plugin. Here is an example that was provided in the page:

enter image description here

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65