Code Monkey home page Code Monkey logo

Comments (14)

nilsreichardt avatar nilsreichardt commented on July 4, 2024 11

I recommend to override wakelock_winodws:

dependency_overrides:
  # Can be removed when
  # https://github.com/creativecreatorormaybenot/wakelock/pull/203 is merged.
  wakelock_windows:
    git:
      url: https://github.com/diegotori/wakelock
      ref: 40464c75e908f57f458597ef4912f5273ab89b1a
      path: wakelock_windows

from wakelock.

miguelmato avatar miguelmato commented on July 4, 2024 2

And me blaming win32...

Honestly, if I use Flutter only for mobile, it would be nice if packages could differentiate dependencies based on supported platforms. I know it's a lot of work for little gains, but it could be interesting.

from wakelock.

miguelmato avatar miguelmato commented on July 4, 2024 1

I forked the package and removed the web and desktop platforms as I don't need them. You can do the same or just bump the dependencies versions as you need.

In your project pubspec.yaml:

wakelock: 
    git:
      url: https://github.com/<YOUR_GH_USERNAME>/wakelock
      ref: main
      path: wakelock

from wakelock.

ozzy1873 avatar ozzy1873 commented on July 4, 2024 1

Thanks!

from wakelock.

nilsreichardt avatar nilsreichardt commented on July 4, 2024 1

@dgilperez You can use the project by @diegotori

dependency_overrides:
  # Can be removed when
  # https://github.com/creativecreatorormaybenot/wakelock/pull/203 is merged.
  wakelock_windows:
    git:
      url: https://github.com/diegotori/wakelock
      ref: 40464c75e908f57f458597ef4912f5273ab89b1a
      path: wakelock_windows

from wakelock.

Willian199 avatar Willian199 commented on July 4, 2024

Same error

from wakelock.

BrahimAkar avatar BrahimAkar commented on July 4, 2024

same error 😥

from wakelock.

NashIlli avatar NashIlli commented on July 4, 2024

+1

from wakelock.

ps6067966 avatar ps6067966 commented on July 4, 2024

facing same issue.

from wakelock.

ozzy1873 avatar ozzy1873 commented on July 4, 2024

@miguelmato I am using your fork, but there is an unmatched '}' on line 23 of wakelock.dart.

from wakelock.

miguelmato avatar miguelmato commented on July 4, 2024

@miguelmato I am using your fork, but there is an unmatched '}' on line 23 of wakelock.dart.

Fixed, but the @nilsreichardt approach is nicer

from wakelock.

dgilperez avatar dgilperez commented on July 4, 2024

@timsneath I think some of us where using your fork to fix this problem, but I see it now deleted / made private ... did you delete it because it is no longer needed? I see no update from the main repo...

from wakelock.

dgilperez avatar dgilperez commented on July 4, 2024

Thanks :) Solved.

from wakelock.

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.