Git Product home page Git Product logo

Comments (3)

X-SLAYER avatar X-SLAYER commented on May 23, 2024

Run the example you will find how I send data from the overlay to the main UI and reversed

from flutter_overlay_window.

X-SLAYER avatar X-SLAYER commented on May 23, 2024

I need two different overlay windows for my app, currently i had one that is working fine, but i want to show 2nd window that is related to other feature of my app. can i do following for 2nd overlay as i had done for the first overlay. If can do so, how the code differentiate between two windows.

// overlay entry point
@pragma("vm:entry-point")
void overlayMain() {
  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    home: Material(child: Text("My overlay"))
  ));
}

or i had to change the child of Material widget to display other widget as overlay . This means i technically have only have one overlay whose content is changed.

I looked into flutter_floatwing plugin also but i can't able to understand that their example was unnecessarily complex. But they use id pram to differentiate between multiple windows. There is also another one called system_alert_window but that give less options to customize the window

if anyone had implemented 2-3 different window please comment down any demo code or any info you can provide me.

for the moment it on shows 1 overlay maybe in future updates

from flutter_overlay_window.

antinosoum avatar antinosoum commented on May 23, 2024

Run the example you will find how I send data from the overlay to the main UI and reversed

I had run the example but Its only able to share data from main ui to overlay not overlay to main Ui

from flutter_overlay_window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.