Git Product home page Git Product logo

Comments (9)

X-SLAYER avatar X-SLAYER commented on May 25, 2024 2

yes i didin't update the latest version on pub.dev yet

you can use the git version until I update it

 flutter_overlay_window:
     git:
      url: https://github.com/X-SLAYER/flutter_overlay_window.git

from flutter_overlay_window.

mulaRahul avatar mulaRahul commented on May 25, 2024

Hey @Binj0, as mentioned in the #36 -

the package on pub.dev doesn't seem to be updated.

I also got the same issue and got it fixed using the git-branch directly. You can do the same, by adding the below in your pubspec.yaml -

dependencies:
  flutter:
    sdk: flutter

  flutter_overlay_window:
    git:
      url: https://github.com/X-SLAYER/flutter_overlay_window.git
      ref: main # use master branch

Hopefully, the maintainer will resolve the issue with pub.dev.

As for,

Question 1: Is there a way to make the overlay, when set to clickthrough...

click_through_overlay.mp4

I have a solid overlay when using the OverlayFlag.clickThrough as seen above.

Question 2: Is there a way to overlay the content above the system navigation...

I think that's enforced by the system (as you shouldn't overlay on top of the system status/navigation bar) but, I may be wrong 🤔.

from flutter_overlay_window.

Binj0 avatar Binj0 commented on May 25, 2024

Thank you for the answers!

After doing as suggested closing the window works.

When setting flag: OverlayFlag.clickThrough my overlay still won't stay fully opaque:
image

from flutter_overlay_window.

mulaRahul avatar mulaRahul commented on May 25, 2024

That's probably because of the MAXIMUM_OPACITY_ALLOWED_FOR_S_AND_HIGHER -

private static final float MAXIMUM_OPACITY_ALLOWED_FOR_S_AND_HIGHER = 0.8f;

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && WindowSetup.flag == clickableFlag) {
params.alpha = MAXIMUM_OPACITY_ALLOWED_FOR_S_AND_HIGHER;
}

from flutter_overlay_window.

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

did you change the background color of your overlay widget

from flutter_overlay_window.

Binj0 avatar Binj0 commented on May 25, 2024

did you change the background color of your overlay widget

I am using the flame package and the SpriteAnimationWidget

from flutter_overlay_window.

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

i don't have idea about it, but if you put a simple widget like a container for example, and change the colours with some opacity u can see behind it

from flutter_overlay_window.

Binj0 avatar Binj0 commented on May 25, 2024

Yes, as seen here this effect also occurs with just a colored container:
image

It seems like @mulaRahul answer about private static final float MAXIMUM_OPACITY_ALLOWED_FOR_S_AND_HIGHER = 0.8f; ist what causes this. Is there a reason for this maximum opacity?

from flutter_overlay_window.

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

the MAXIMUM_OPACITY_ALLOWED_FOR_S_AND_HIGHER is for android 12 and above they have a maximum alpha code so you can click above the overlay you can check more here

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.