Comments (14)
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.
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.
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.
Thanks!
from wakelock.
@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.
Same error
from wakelock.
same error 😥
from wakelock.
+1
from wakelock.
facing same issue.
from wakelock.
@miguelmato I am using your fork, but there is an unmatched '}' on line 23 of wakelock.dart.
from wakelock.
@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.
@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.
Thanks :) Solved.
from wakelock.
Related Issues (20)
- Add compatibility with Android Gradle Plugin 8.0
- Exception: Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) HOT 1
- wakelock forces me to use old versions of plugins HOT 4
- Wakelock is Incompatible with Share plus ^7.0.0 HOT 3
- Please update the depedencies to latest verssions and also add flutter 3.10 support HOT 6
- Need update on dependencies as other important dependencies updated their versions HOT 7
- State of wakelock package HOT 3
- Can affect wakelock enable method into url launched for a webview ? HOT 1
- Feature request: Dim screen (but keep it on) HOT 1
- Wakelock doesn't work at the latest version of flutter HOT 19
- App terminated by iOS while wakelocked HOT 5
- Still alive? HOT 2
- Wakelock is incompatible with device_info_plus: ^9.0.2 HOT 3
- Package incompatibility! win32 ^3.0.0 HOT 2
- 'Flutter/Flutter.h' file not found in IOS HOT 2
- increase android target API to 33 HOT 1
- duplicate: may be deleted
- An ios NSRangeException error may be caused by wakelock HOT 1
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wakelock.