Code Monkey home page Code Monkey logo

creativecreatorormaybenot / wakelock Goto Github PK

View Code? Open in Web Editor NEW
413.0 413.0 233.0 457 KB

Flutter plugin that allows you to keep the device screen awake on Android, iOS, macOS, Windows, and web.

Home Page: https://pub.dev/packages/wakelock

License: BSD 3-Clause "New" or "Revised" License

Objective-C 8.85% Dart 32.25% Ruby 4.86% Kotlin 2.61% JavaScript 13.38% HTML 1.02% Java 5.60% Swift 2.50% CMake 7.98% C++ 20.20% C 0.74%
dart flutter flutter-plugin

wakelock's People

Contributors

creativecreatorormaybenot avatar ened avatar github-actions[bot] avatar grahamsmith avatar irvine5k avatar jon-salmon avatar michalsrutek avatar miracoli avatar roulljdh avatar suyaolingoace avatar tahamv avatar wilsonowilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wakelock's Issues

Module 'wakelock' not found in xcode 11.6

Hi,

I am using this futter package on Xcode 11.6 in my app. When trying to debug the app on my iPad, I got:
Module 'wakelock' not found

Anyone knows why and how to solve the issue?

Thanks,
Raphael

Could not make it work on MacOS

I was happy to see that this lib is available for macOS, but I could not get it to work. Could you please help me figure out what is going on?

The last line in the log is about wakelock, is says the podspec was not found:

Fetching external sources
-> Fetching podspec for `package_info` from `Flutter/ephemeral/.symlinks/plugins/package_info/macos`
-> Fetching podspec for `shared_preferences` from `Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos`
-> Fetching podspec for `shared_preferences_macos` from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`
-> Fetching podspec for `sign_in_with_apple` from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`
-> Fetching podspec for `url_launcher` from `Flutter/ephemeral/.symlinks/plugins/url_launcher/macos`
-> Fetching podspec for `url_launcher_macos` from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`
-> Fetching podspec for `wakelock` from `Flutter/ephemeral/.symlinks/plugins/wakelock/macos`
[!] No podspec found for `wakelock` in `Flutter/ephemeral/.symlinks/plugins/wakelock/macos`

I am on Flutter dev channel, version 1.26.0-12.0.pre and I have installed wakelock: ^0.4.0-nullsafety.0.

Here is the part of my pubspec.lock that refers to wakelock:

pubspec.lock
wakelock:
  dependency: transitive
  description:
    name: wakelock
    url: "https://pub.dartlang.org"
  source: hosted
  version: "0.4.0-nullsafety.0"
wakelock_macos:
  dependency: transitive
  description:
    name: wakelock_macos
    url: "https://pub.dartlang.org"
  source: hosted
  version: "0.1.0-nullsafety.0"
wakelock_platform_interface:
  dependency: transitive
  description:
    name: wakelock_platform_interface
    url: "https://pub.dartlang.org"
  source: hosted
  version: "0.2.0-nullsafety.2"
wakelock_web:
  dependency: transitive
  description:
    name: wakelock_web
    url: "https://pub.dartlang.org"
  source: hosted
  version: "0.2.0-nullsafety.1"

The plugin `wakelock` requires your app to be migrated to the Android embedding v2

Hello guys,

When I run flutter pub get, from today, I've got this message:

The plugin wakelock requires your app to be migrated to the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.

In another project created at the same time, I've got the same pubspec.yaml file but I can run flutter pub get correctly.

This is my pubspec.yaml file:

`name: app_inteface_pwa
description: A Flutter project.

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
url_launcher: ^5.4.1
shimmer: ^1.0.1
cupertino_icons: ^1.0.0
flutter_login: ^1.0.14
string_validator: ^0.1.4
shared_preferences: "^0.5.8"
json_serializable: ^3.3.0
firebase_messaging: ^5.1.4
firebase_core: ^0.4.0
firebase_auth: ^0.11.1+6
cloud_firestore: ^0.13.0+1
google_sign_in: ^4.5.1
flutter_facebook_login: ^3.0.0
sign_in_with_apple: ^2.5.1
flutter_inapp_purchase: ^2.3.2
in_app_purchase: 0.3.4+15
network_to_file_image: ^2.3.1
path_provider: ^1.6.11
connectivity: '>=0.4.9 <2.0.0'
datetime_picker_formfield: ^1.0.0
crypto: ^2.1.4
basic_utils: ^2.6.0
flutter_spinkit: "^4.1.2"
flutter_offline: "^0.3.0"
async_loader: ^0.1.2
carousel_slider: ^2.3.1
flutter_statusbarcolor: ^0.2.3
webview_flutter: ^1.0.6
flutter_inappwebview: ^4.0.0+4
styled_text: ^1.0.2+1
flutter_downloader: ^1.5.2
permission_handler: ^5.0.1+1
package_info: '>=0.4.3+2 <2.0.0'
flutter_html: ^1.1.1

dev_dependencies:
flutter_test:
sdk: flutter

assets:
- assets/_default/

fonts:
- family: Roboto
fonts:
- asset: assets/fonts/Roboto/Roboto-Thin.ttf
weight: 100
- asset: assets/fonts/Roboto/Roboto-Light.ttf
weight: 200
- asset: assets/fonts/Roboto/Roboto-Medium.ttf
weight: 500
- asset: assets/fonts/Roboto/Roboto-Regular.ttf
weight: 300
- asset: assets/fonts/Roboto/Roboto-Bold.ttf
weight: 700
- family: OpenSans
fonts:
- asset: assets/fonts/OpenSans/OpenSans-Light.ttf
weight: 100
- asset: assets/fonts/OpenSans/OpenSans-LightItalic.ttf
weight: 100
style: italic
- asset: assets/fonts/OpenSans/OpenSans-Regular.ttf
weight: 400
- asset: assets/fonts/OpenSans/OpenSans-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/OpenSans/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/OpenSans/OpenSans-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/OpenSans/OpenSans-Bold.ttf
weight: 700
- asset: assets/fonts/OpenSans/OpenSans-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/OpenSans/OpenSans-ExtraBold.ttf
weight: 800
- asset: assets/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf
weight: 800
style: italic

`

Linux support

Description

The wakelock plugin has added support for web (#40), for macOS (#86), and now also for Windows (#96) over time. The only missing platform at this time is Linux.

This issue tracks the feature request for Linux support (replacement for the general desktop support issue #57).

Attack plan

Wakelock should be all ready for Linux support. All it takes now is a contribution from someone implementing it.

I myself am currently not into Linux and therefore have no direct plans for adding it myself. However, any contributions are welcome!

Considerations

When flutter/flutter#52267 lands on stable, we should consider using that if necessary. Otherwise, we should try to use pigeon. In this process, we could also adjust the other platform implementations to comply with flutter/flutter#52267 or pigeon instead of currently existing workarounds.

Errors during build process on Microsoft App Center

I'm getting errors during the build process on Microsoft's App Center with wakelock 0.1.4+1.

The log snippet shows this:

> Configure project :
Resolved com.android.tools.build:gradle:3.5.0 in :classpath 
Resolved org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 in :classpath 
Project wakelock at : is either no Android app project or build version has not been set to override. Skipping...
Resolved org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50 in :releaseRuntimeClasspath 
Resolved io.flutter:flutter_embedding_release:1.0.0-ee76268252c22f5c11e82a7b87423ca3982e51a7 in :releaseCompileClasspath 
Resolved org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50 in :releaseCompileClasspath 
Resolved org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.50 in :releaseCompileClasspath 
Resolved org.jetbrains.kotlin:kotlin-stdlib:1.3.50 in :releaseCompileClasspath 
Resolved org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50 in :releaseCompileClasspath 
Resolved org.jetbrains:annotations:13.0 in :releaseCompileClasspath 
Resolved org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50 in :kotlinCompilerClasspath 
Resolved com.android.tools.lint:lint-gradle:26.5.0 in :lintClassPath 

> Task :assembleAarRelease UP-TO-DATE
> Task :preBuild UP-TO-DATE
> Task :preReleaseBuild UP-TO-DATE
> Task :compileReleaseAidl NO-SOURCE
> Task :compileReleaseRenderscript NO-SOURCE
> Task :checkReleaseManifest
> Task :generateReleaseBuildConfig
> Task :generateReleaseResValues
> Task :generateReleaseResources
> Task :packageReleaseResources
> Task :mergeReleaseShaders
> Task :compileReleaseShaders
> Task :generateReleaseAssets
> Task :packageReleaseAssets
> Task :packageReleaseRenderscript NO-SOURCE
> Task :processReleaseJavaRes NO-SOURCE
> Task :mergeReleaseJniLibFolders
> Task :prepareLintJarForPublish
> Task :parseReleaseLibraryResources
> Task :processReleaseManifest
> Task :mergeReleaseNativeLibs
> Task :stripReleaseDebugSymbols
> Task :transformNativeLibsWithSyncJniLibsForRelease
> Task :generateReleaseRFile

> Task :compileReleaseKotlin FAILED
16 actionable tasks: 16 executed

e: /Users/runner/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (3, 28): Unresolved reference: NonNull
e: /Users/runner/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (16, 36): Unresolved reference: NonNull
e: /Users/runner/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (46, 30): Unresolved reference: NonNull
e: /Users/runner/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (46, 57): Unresolved reference: NonNull
e: /Users/runner/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (62, 38): Unresolved reference: NonNull

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

The plugin wakelock could not be built due to the issue above.

##[error]The process '/bin/bash' failed with exit code 1
##[error]Bash failed with error: The process '/bin/bash' failed with exit code 1

I had a similar issue with the assets_audio_player plugin and the author was quick to apply a fix. Details here:
florent37/Flutter-AssetsAudioPlayer#266

can the wake lock be overruled by the user?

just asking - for example if I play mp3s using my phone, is that a wake lock as well as the screen does turn off, but the music continues playing.

e.g. can the wake lock be overruled by the user if he presses the screen lock button? or will the app keep running?

what about battery life? subjective rule of thumb thoughts?

MissingPluginException(No implementation found for method toggle on channel wakelock)

I'm getting the exception & stack trace shown below. I've tried putting the call in a couple of different places.

import 'package:wakelock/wakelock.dart';
...
Wakelock.enable();
E/flutter ( 9671): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method toggle on channel wakelock)
E/flutter ( 9671): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)
E/flutter ( 9671): <asynchronous suspension>
E/flutter ( 9671): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter ( 9671): #2      Wakelock.enable (package:wakelock/wakelock.dart:21:16)

Any suggestions?

Execution failed for task ':wakelock:compileDebugKotlin'.

I got this error after upgrade to ^0.2.0+2.

I found this solution to fix this,
wakelock: 0.2.0+1

e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (13, 50): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (15, 33): Type mismatch: inferred type is String but Object was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (16, 40): Unresolved reference: getClass
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (17, 33): Null can not be a value of a non-null type Object
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (32, 22): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (34, 39): Type mismatch: inferred type is Boolean? but Object was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (39, 30): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (42, 40): Type mismatch: inferred type is Object but Boolean? was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (59, 22): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (61, 40): Type mismatch: inferred type is Boolean? but Object was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (66, 30): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (69, 41): Type mismatch: inferred type is Object but Boolean? was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (84, 64): Type inference failed. Expected type mismatch: inferred type is BasicMessageChannel<Any!> but BasicMessageChannel<Object> was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (84, 84): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (87, 58): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (89, 118): 2 type arguments expected. Use 'HashMap<*, *>' if you don't want to pass type arguments
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (95, 41): Type mismatch: inferred type is HashMap<String, [ERROR : HashMap]> but Object? was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (102, 64): Type inference failed. Expected type mismatch: inferred type is BasicMessageChannel<Any!> but BasicMessageChannel<Object> was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (102, 84): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (105, 58): 2 type arguments expected for class HashMap<K : Any!, V : Any!>
e: /Users/userName/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.0+2/android/src/main/kotlin/creativemaybeno/wakelock/Messages.kt: (112, 41): Type mismatch: inferred type is HashMap<String, [ERROR : HashMap]> but Object? was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wakelock:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 18s
Exception: Gradle task assembleDevDebug failed with exit code 1


Add integration tests & CI

To ensure that the plugin code works on both iOS and Android, integration tests that are tested on both platforms should be added.

fatal error: 'Flutter/Flutter.h' file not found

on flutter 1.17.5, plugin 0.1.4+2, swift version v4.2, Xcode 11.5

↳
    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Users/srinivas/developer/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:1:
    /Users/srinivas/developer/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.h:1:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    /Users/srinivas/developer/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.h:1:9: note: did not find header 'Flutter.h' in framework 'Flutter' (loaded from '/Users/srinivas/Documents/GitHub/Audiobook/ios/Flutter')
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
Failed to build iOS app
    note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.

Does it need any permission?

Please, clarify it on the readme, either if it needs a permission or not. Just for the peace of mind. Thank you! 👍

GitHub Actions

Use GitHub Actions to run Flutter analysis, formatting, unit tests, and integration tests instead of Travis CI with the next update to the plugin or as soon as GitHub Actions is out of beta.

Error while using the plugin.

Unable to complete build process after importing wakelock.dart file in my flutter application.

The error is shown as above.
A build for MacOS is working fine.
It is just with Android.
Haven't tested with iOS.

Not a true wakelock

Not a true wake lock as described here: https://developer.android.com/training/scheduling/wakelock

The Android side of this plugin does not implement an actual PowerManger wakelock, rather it implements a FLAG_KEEP_SCREEN_ON. I was looking for a wakelock plugin, but this plugin appears to be miss-named, or the implementation is incorrect given the current name.

Plugin project :import_js_library not found.

I've seen the error message "Plugin project :import_js_library not found. Please update settings.gradle." in the console on every flutter run (on Windows, targeting an Android device) after I updated wakelock to 0.2.0+1. Despite the error, wakelock seems to be working fine.

Is there anything missing on the plugin side, or do I need additional configurations to run the app without the error?

Wakelock is not ARMV7

When building ios for release (flutter build ios) I receive a message 'wakelock.framework/wakelock is not armv7'

Is there an easy fix for this?

EXC_BAD_ACCESS when triggering wakelock on iOS

We're currently investigating a problem with this plugin when used on iOS.
The symptom is a full app crash with EXC_BAD_ACCESS, in the iOS side's observeValueForKeyPath method:

Screenshot 2021-04-15 at 21 56 25

The stacktrace points to a recursion:
Screenshot 2021-04-15 at 21 56 58

Our App actually runs two isolates, which in turn means two instances of the wakelock plugin are active and interfering with each other.

Screenshot 2021-04-15 at 21 58 25

This could be resolved by setting up single observer instead of one per plugin instance.

pub get error

Hi
Im getting this error while trying to add wakelock ^0.2.1+1 into my pubspec.yaml

Because every version of flutter_test from sdk depends on meta 1.1.8 and wakelock >=0.2.0 <0.3.0-nullsafety.0 depends on meta ^1.2.0, flutter_test from sdk is incompatible with wakelock >=0.2.0 <0.3.0-nullsafety.0.

and when I comment out flutter_test, I also get this error:

Because every version of flutter from sdk depends on meta 1.1.8 and wakelock >=0.2.0 <0.3.0-nullsafety.0 depends on meta ^1.2.0, flutter from sdk is incompatible with wakelock >=0.2.0 <0.3.0-nullsafety.0.

Plugin name

Hello and thank you for your plugin,

I have just a quick question regarding the name of your plugin: I need to use an actual wake lock which, in Android's vocabulary, is something very different from keeping the screen on.
So my only question is: is your plugin properly named? I see it is an adaptation of screen , which is somehow better named :)

Wakelock is different on iOS and Android

Wakelock is different on iOS and Android. I think may be add a comment on code or solve them.

  1. iOS: idleTimerDisabled = YES works only until ImagePicker was used

    On iOS, wakelock.enable() will be change to false after UIImagePickerController disappears. This usually happens when the user used the camera

  2. When Add Flutter to existing app, the Application can have multiple different activities (on Android) or ViewControllers (on iOS) created by the Flutter Engine. Unfortunately,on Android, the Wakelock is for a Activity and on iOS, it is for a whole application

No podspec found for `wakelock_web`

Flutter expects a podspec file in wakelock_web this is obviously not expected.

[!] No podspec found for wakelock_web in .symlinks/plugins/wakelock_web/ios

v0.5 breaks web

Hi there,

somehow when I upgrade from wakelock: ^0.4.0 to 0.5.0 and run
flutter build web
on flutter 2.0.1 (stable), I get a long list of errors and compilation breaks (none of these happen if I do the same with 0.4.0):

../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:271:25:
Error: 'Pointer' isn't a type.
  int GetPropertyOrigin(Pointer<Utf16> wszName, Pointer<Utf16> pstrClassName) =>
                        ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:271:49:
Error: 'Pointer' isn't a type.
  int GetPropertyOrigin(Pointer<Utf16> wszName, Pointer<Utf16> pstrClassName) =>
                                                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:272:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetPropertyOrigin_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:272:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetPropertyOrigin_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:277:20:
Error: 'Pointer' isn't a type.
  int InheritsFrom(Pointer<Utf16> strAncestor) =>
                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:278:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_InheritsFrom_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:278:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_InheritsFrom_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:282:17:
Error: 'Pointer' isn't a type.
  int GetMethod(Pointer<Utf16> wszName, int lFlags,
                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:283:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:283:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:283:50:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                                                 ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:283:42:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                                         ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:284:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetMethod_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:284:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetMethod_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:289:17:
Error: 'Pointer' isn't a type.
  int PutMethod(Pointer<Utf16> wszName, int lFlags,
                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:290:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pInSignature, Pointer<COMObject> pOutSignature) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:290:44:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pInSignature, Pointer<COMObject> pOutSignature) =>
                                           ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:291:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_PutMethod_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:291:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_PutMethod_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:296:20:
Error: 'Pointer' isn't a type.
  int DeleteMethod(Pointer<Utf16> wszName) =>
                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:297:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteMethod_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:297:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteMethod_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:302:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_BeginMethodEnumeration_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:302:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_BeginMethodEnumeration_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:307:30:
Error: 'Pointer' isn't a type.
  int NextMethod(int lFlags, Pointer<Utf16> pstrName,
                             ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:308:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:308:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:308:50:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                                                 ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:308:42:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppInSignature, Pointer<IntPtr> ppOutSignature) =>
                                         ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:309:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_NextMethod_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:309:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_NextMethod_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:315:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_EndMethodEnumeration_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:315:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_EndMethodEnumeration_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:320:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> wszMethod, Pointer<IntPtr> ppQualSet) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:320:45:
Error: 'IntPtr' isn't a type.
          Pointer<Utf16> wszMethod, Pointer<IntPtr> ppQualSet) =>
                                            ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:320:37:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> wszMethod, Pointer<IntPtr> ppQualSet) =>
                                    ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:321:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetMethodQualifierSet_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:321:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetMethodQualifierSet_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:327:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> wszMethodName, Pointer<Utf16> pstrClassName) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:327:41:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> wszMethodName, Pointer<Utf16> pstrClassName) =>
                                        ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:328:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetMethodOrigin_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemClassObject.dart:328:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetMethodOrigin_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:66:16:
Error: 'Pointer' isn't a type.
  IWbemContext(Pointer<COMObject> ptr) : super(ptr);
               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:68:21:
Error: 'IntPtr' isn't a type.
  int Clone(Pointer<IntPtr> ppNewCopy) =>
                    ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:68:13:
Error: 'Pointer' isn't a type.
  int Clone(Pointer<IntPtr> ppNewCopy) =>
            ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:69:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_Clone_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:69:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_Clone_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:73:28:
Error: 'Pointer' isn't a type.
  int GetNames(int lFlags, Pointer<SAFEARRAY> pNames) =>
                           ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:74:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetNames_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:74:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetNames_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:79:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_BeginEnumeration_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:79:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_BeginEnumeration_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:83:24:
Error: 'Pointer' isn't a type.
  int Next(int lFlags, Pointer<Utf16> pstrName, Pointer<VARIANT> pValue) =>
                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:83:49:
Error: 'Pointer' isn't a type.
  int Next(int lFlags, Pointer<Utf16> pstrName, Pointer<VARIANT> pValue) =>
                                                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:84:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_Next_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:84:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_Next_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:89:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_EndEnumeration_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:89:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_EndEnumeration_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:93:16:
Error: 'Pointer' isn't a type.
  int SetValue(Pointer<Utf16> wszName, int lFlags, Pointer<VARIANT> pValue) =>
               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:93:52:
Error: 'Pointer' isn't a type.
  int SetValue(Pointer<Utf16> wszName, int lFlags, Pointer<VARIANT> pValue) =>
                                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:94:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_SetValue_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:94:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_SetValue_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:99:16:
Error: 'Pointer' isn't a type.
  int GetValue(Pointer<Utf16> wszName, int lFlags, Pointer<VARIANT> pValue) =>
               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:99:52:
Error: 'Pointer' isn't a type.
  int GetValue(Pointer<Utf16> wszName, int lFlags, Pointer<VARIANT> pValue) =>
                                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:100:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetValue_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:100:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetValue_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:105:19:
Error: 'Pointer' isn't a type.
  int DeleteValue(Pointer<Utf16> wszName, int lFlags) =>
                  ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:106:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteValue_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:106:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteValue_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:110:30:
Error: 'NativeFunction' isn't a type.
  int DeleteAll() => Pointer<NativeFunction<_DeleteAll_Native>>.fromAddress(
                             ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemContext.dart:110:22:
Error: Method not found: 'Pointer.fromAddress'.
  int DeleteAll() => Pointer<NativeFunction<_DeleteAll_Native>>.fromAddress(
                     ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:53:16:
Error: 'Pointer' isn't a type.
  IWbemLocator(Pointer<COMObject> ptr) : super(ptr);
               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:56:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strNetworkResource,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:57:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strUser,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:58:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strPassword,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:59:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strLocale,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:61:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strAuthority,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:62:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:63:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppNamespace) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:63:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppNamespace) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:64:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ConnectServer_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:64:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ConnectServer_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:80:15:
Error: 'Pointer' isn't a type.
  WbemLocator(Pointer<COMObject> ptr) : super(ptr);
              ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemLocator.dart:88:42:
Error: Getter not found: 'nullptr'.
      final hr = CoCreateInstance(clsid, nullptr, CLSCTX_ALL, iid, ptr.cast());
                                         ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:322:17:
Error: 'Pointer' isn't a type.
  IWbemServices(Pointer<COMObject> ptr) : super(ptr);
                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:325:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strNamespace,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:327:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:328:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppWorkingNamespace,
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:328:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppWorkingNamespace,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:329:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:329:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:330:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_OpenNamespace_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:330:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_OpenNamespace_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:335:23:
Error: 'Pointer' isn't a type.
  int CancelAsyncCall(Pointer<COMObject> pSink) =>
                      ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:336:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_CancelAsyncCall_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:336:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_CancelAsyncCall_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:340:43:
Error: 'IntPtr' isn't a type.
  int QueryObjectSink(int lFlags, Pointer<IntPtr> ppResponseHandler) =>
                                          ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:340:35:
Error: 'Pointer' isn't a type.
  int QueryObjectSink(int lFlags, Pointer<IntPtr> ppResponseHandler) =>
                                  ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:341:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_QueryObjectSink_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:341:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_QueryObjectSink_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:347:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strObjectPath,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:349:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:350:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppObject,
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:350:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppObject,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:351:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:351:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:352:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetObject_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:352:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetObject_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:357:22:
Error: 'Pointer' isn't a type.
  int GetObjectAsync(Pointer<Utf16> strObjectPath, int lFlags,
                     ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:358:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:358:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:359:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_GetObjectAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:359:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_GetObjectAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:364:16:
Error: 'Pointer' isn't a type.
  int PutClass(Pointer<COMObject> pObject, int lFlags, Pointer<COMObject> pCtx,
               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:364:56:
Error: 'Pointer' isn't a type.
  int PutClass(Pointer<COMObject> pObject, int lFlags, Pointer<COMObject> pCtx,
                                                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:365:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:365:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:366:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_PutClass_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:366:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_PutClass_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:371:21:
Error: 'Pointer' isn't a type.
  int PutClassAsync(Pointer<COMObject> pObject, int lFlags,
                    ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:372:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:372:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:373:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_PutClassAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:373:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_PutClassAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:378:19:
Error: 'Pointer' isn't a type.
  int DeleteClass(Pointer<Utf16> strClass, int lFlags, Pointer<COMObject> pCtx,
                  ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:378:56:
Error: 'Pointer' isn't a type.
  int DeleteClass(Pointer<Utf16> strClass, int lFlags, Pointer<COMObject> pCtx,
                                                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:379:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:379:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:380:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteClass_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:380:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteClass_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:385:24:
Error: 'Pointer' isn't a type.
  int DeleteClassAsync(Pointer<Utf16> strClass, int lFlags,
                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:386:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:386:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:387:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteClassAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:387:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteClassAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:392:23:
Error: 'Pointer' isn't a type.
  int CreateClassEnum(Pointer<Utf16> strSuperclass, int lFlags,
                      ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:393:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:393:44:
Error: 'IntPtr' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                           ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:393:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:394:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_CreateClassEnum_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:394:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_CreateClassEnum_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:399:28:
Error: 'Pointer' isn't a type.
  int CreateClassEnumAsync(Pointer<Utf16> strSuperclass, int lFlags,
                           ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:400:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:400:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:401:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_CreateClassEnumAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:401:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_CreateClassEnumAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:406:19:
Error: 'Pointer' isn't a type.
  int PutInstance(Pointer<COMObject> pInst, int lFlags, Pointer<COMObject> pCtx,
                  ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:406:57:
Error: 'Pointer' isn't a type.
  int PutInstance(Pointer<COMObject> pInst, int lFlags, Pointer<COMObject> pCtx,
                                                        ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:407:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:407:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:408:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_PutInstance_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:408:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_PutInstance_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:413:24:
Error: 'Pointer' isn't a type.
  int PutInstanceAsync(Pointer<COMObject> pInst, int lFlags,
                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:414:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:414:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:415:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_PutInstanceAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:415:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_PutInstanceAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:420:22:
Error: 'Pointer' isn't a type.
  int DeleteInstance(Pointer<Utf16> strObjectPath, int lFlags,
                     ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:421:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:421:44:
Error: 'IntPtr' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppCallResult) =>
                                           ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:421:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppCallResult) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:422:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteInstance_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:422:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteInstance_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:427:27:
Error: 'Pointer' isn't a type.
  int DeleteInstanceAsync(Pointer<Utf16> strObjectPath, int lFlags,
                          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:428:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:428:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:429:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_DeleteInstanceAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:429:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_DeleteInstanceAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:434:26:
Error: 'Pointer' isn't a type.
  int CreateInstanceEnum(Pointer<Utf16> strFilter, int lFlags,
                         ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:435:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:435:44:
Error: 'IntPtr' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                           ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:435:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:436:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_CreateInstanceEnum_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:436:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_CreateInstanceEnum_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:441:31:
Error: 'Pointer' isn't a type.
  int CreateInstanceEnumAsync(Pointer<Utf16> strFilter, int lFlags,
                              ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:442:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:442:36:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
                                   ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:443:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_CreateInstanceEnumAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:443:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_CreateInstanceEnumAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:448:17:
Error: 'Pointer' isn't a type.
  int ExecQuery(Pointer<Utf16> strQueryLanguage, Pointer<Utf16> strQuery,
                ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:448:50:
Error: 'Pointer' isn't a type.
  int ExecQuery(Pointer<Utf16> strQueryLanguage, Pointer<Utf16> strQuery,
                                                 ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:449:23:
Error: 'Pointer' isn't a type.
          int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                      ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:449:56:
Error: 'IntPtr' isn't a type.
          int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                                       ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:449:48:
Error: 'Pointer' isn't a type.
          int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
                                               ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:450:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecQuery_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:450:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecQuery_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:456:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQueryLanguage,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:457:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQuery,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:459:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:460:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:461:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecQueryAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:461:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecQueryAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:467:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQueryLanguage,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:468:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQuery,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:470:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:471:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppEnum) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:471:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppEnum) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:472:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecNotificationQuery_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:472:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecNotificationQuery_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:478:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQueryLanguage,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:479:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strQuery,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:481:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:482:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:483:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecNotificationQueryAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:483:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecNotificationQueryAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:489:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strObjectPath,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:490:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strMethodName,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:492:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:493:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pInParams,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:494:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppOutParams,
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:494:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppOutParams,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:495:19:
Error: 'IntPtr' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:495:11:
Error: 'Pointer' isn't a type.
          Pointer<IntPtr> ppCallResult) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:496:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecMethod_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:496:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecMethod_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:502:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strObjectPath,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:503:11:
Error: 'Pointer' isn't a type.
          Pointer<Utf16> strMethodName,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:505:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pCtx,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:506:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pInParams,
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:507:11:
Error: 'Pointer' isn't a type.
          Pointer<COMObject> pResponseHandler) =>
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:508:15:
Error: 'NativeFunction' isn't a type.
      Pointer<NativeFunction<_ExecMethodAsync_Native>>.fromAddress(
              ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/win32-2.0.0/lib/src/generated/IWbemServices.dart:508:7:
Error: Method not found: 'Pointer.fromAddress'.
      Pointer<NativeFunction<_ExecMethodAsync_Native>>.fromAddress(
      ^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:25:19:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
                  ^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:25:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:25:39:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> array = cast<Uint8>();
                                      ^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:47:29:
Error: 'Uint8' isn't a type.
    return utf8.decode(cast<Uint8>().asTypedList(length));
                            ^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:64:31:
Error: 'Allocator' isn't a type.
  Pointer<Utf8> toNativeUtf8({Allocator allocator = malloc}) {
                              ^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:66:19:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
                  ^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:66:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf8.dart:66:45:
Error: 'Uint8' isn't a type.
    final Pointer<Uint8> result = allocator<Uint8>(units.length + 1);
                                            ^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:25:19:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:25:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:25:40:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> array = cast<Uint16>();
                                       ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:43:42:
Error: 'Uint16' isn't a type.
      return _toUnknownLengthString(cast<Uint16>());
                                         ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:46:40:
Error: 'Uint16' isn't a type.
      return _toKnownLengthString(cast<Uint16>(), length);
                                       ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:50:46:
Error: 'Uint16' isn't a type.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                             ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:50:38:
Error: 'Pointer' isn't a type.
  static String _toKnownLengthString(Pointer<Uint16> codeUnits, int length) =>
                                     ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:53:48:
Error: 'Uint16' isn't a type.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                               ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:53:40:
Error: 'Pointer' isn't a type.
  static String _toUnknownLengthString(Pointer<Uint16> codeUnits) {
                                       ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:76:33:
Error: 'Allocator' isn't a type.
  Pointer<Utf16> toNativeUtf16({Allocator allocator = malloc}) {
                                ^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:78:19:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
                  ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:78:11:
Error: 'Pointer' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
          ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/utf16.dart:78:46:
Error: 'Uint16' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
                                             ^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:9:7:
Error: 'DynamicLibrary' isn't a type.
final DynamicLibrary stdlib = Platform.isWindows
      ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:10:7:
Error: Getter not found: 'DynamicLibrary'.
    ? DynamicLibrary.open('kernel32.dll')
      ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:11:7:
Error: Getter not found: 'DynamicLibrary'.
    : DynamicLibrary.process();
      ^^^^^^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:31:7:
Error: 'Pointer' isn't a type.
final Pointer processHeap = winGetProcessHeap();
      ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:66:5:
Error: 'Pointer' isn't a type.
    Pointer<T> result;
    ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:90:13:
Error: 'Pointer' isn't a type.
  void free(Pointer pointer) {
            ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:108:7:
Error: 'Allocator' isn't a type.
const Allocator malloc = _MallocAllocator();
      ^^^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:131:5:
Error: 'Pointer' isn't a type.
    Pointer<T> result;
    ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:156:13:
Error: 'Pointer' isn't a type.
  void free(Pointer pointer) {
            ^^^^^^^
../../flutter/.pub-cache/bin/hosted/pub.dartlang.org/ffi-1.0.0/lib/src/allocation.dart:175:7:
Error: 'Allocator' isn't a type.
const Allocator calloc = _CallocAllocator();
      ^^^^^^^^^
Error: Compilation failed.

Here's my other dependencies:

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  animated_button: ^0.1.3
  audioplayers: ^0.17.4
  auto_size_text: ^2.1.0
  build_runner: ^1.10.7
  cupertino_icons: ^1.0.2
  dynamic_theme: ^1.0.1
  facebook_app_events: ^0.8.2
  firebase_analytics: ^6.3.0
  firebase_core: ^0.5.3
  another_flushbar: ^1.10.13
  flutter_for_web_ui: 1.0.0
  flutter_phoenix: ^0.1.0
  flutter_sheet_localization: ^2.0.1
  flutter_staggered_grid_view: ^0.3.4
  font_awesome_flutter: ^8.11.0
  google_fonts: ^1.1.2
  hive: ^1.4.4+1
  hive_flutter: ^0.3.1
  in_app_review: ^1.0.4
  intl: ^0.17.0
  package_info: ^2.0.0
  photo_view: ^0.10.3
  provider: ^4.3.2+3
  settings_ui: ^0.6.0
  simple_animations: ^3.0.0
  smart_select: ^4.3.2
  tutorial_coach_mark: ^0.6.0+1
  url_launcher: ^5.7.10
  wakelock: ^0.4.0
  webview_flutter: ^2.0.2

dev_dependencies:
  flutter_driver:
    sdk: flutter
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: "^0.8.1"
  flutter_sheet_localization_generator: 2.1.2
  screenshots: ^2.1.1
  test: 1.16.5

dependency_overrides:
  analyzer: 0.40.1
  intl: ^0.17.0-nullsafety.2
  screenshots:
    git: https://github.com/trygvis/screenshots
  tool_base:
    git: https://github.com/speaking-in-code/tool_base
  tool_base_test:
    git: https://github.com/trygvis/tool_base_test
  tool_mobile:
    git: https://github.com/trygvis/tool_mobile
  fake_process_manager:
    git: https://github.com/trygvis/fake_process_manager

Use master channel in CI

CI currently uses the v1.7.11 pre-compiled dev channel build.
However, it would be easier to maintain if it simply used the master channel (git clone -b master https://github.com/flutter/flutter.git).

Redeclaration: WakelockPlugin Android build exception

wakelock:
  dependency: transitive
  description:
    name: wakelock
    url: "https://pub.flutter-io.cn"
  source: hosted
  version: "0.1.4+1"

The Android build fails after upgrading the wakelock version with Redeclaration: WakelockPlugin:

Build failure logs
Launching lib/main.dart on MI 5 in debug mode...
Running Gradle task 'assembleDebug'...
e: /Users/say/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (13, 14): Redeclaration: WakelockPlugin
e: /Users/say/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.1.4/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (13, 14): Redeclaration: WakelockPlugin
e: /Users/say/.pub-cache/hosted/pub.flutter-io.cn/wakelock-0.1.4/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (37, 14): Unresolved reference: setup

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wakelock:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 3s
Finished with error: Gradle task assembleDebug failed with exit code 1

Unresolved reference: NonNull

✓ Built build/app/outputs/repo.
Building plugin wakelock...
Running Gradle task 'assembleAarRelease'...                             
Running Gradle task 'assembleAarRelease'... Done                    2.7s
> Task :assembleAarRelease UP-TO-DATE
> Task :preBuild UP-TO-DATE
> Task :preReleaseBuild UP-TO-DATE
> Task :compileReleaseAidl NO-SOURCE
> Task :compileReleaseRenderscript NO-SOURCE
> Task :checkReleaseManifest
> Task :generateReleaseBuildConfig
> Task :generateReleaseResValues
> Task :generateReleaseResources
> Task :packageReleaseResources
> Task :mergeReleaseShaders
> Task :compileReleaseShaders
> Task :generateReleaseAssets
> Task :packageReleaseAssets
> Task :packageReleaseRenderscript NO-SOURCE
> Task :processReleaseJavaRes NO-SOURCE
> Task :mergeReleaseJniLibFolders
> Task :prepareLintJarForPublish
> Task :parseReleaseLibraryResources
> Task :processReleaseManifest
> Task :mergeReleaseNativeLibs
> Task :stripReleaseDebugSymbols
> Task :transformNativeLibsWithSyncJniLibsForRelease
> Task :generateReleaseRFile

> Task :compileReleaseKotlin FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
16 actionable tasks: 16 executed

e: /Users/haoranliu/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (3, 28): Unresolved reference: NonNull
e: /Users/haoranliu/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (16, 36): Unresolved reference: NonNull
e: /Users/haoranliu/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (46, 30): Unresolved reference: NonNull
e: /Users/haoranliu/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (46, 57): Unresolved reference: NonNull
e: /Users/haoranliu/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/wakelock-0.1.4+1/android/src/main/kotlin/creativecreatorormaybenot/wakelock/WakelockPlugin.kt: (62, 38): Unresolved reference: NonNull

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s


Update plugin structure

The plugin is slightly old by now. It should be recreated and some directories and files should be removed and ignored now, based on new insights I have.

This can be implemented together with #9.

[Feature-Request]: Wakelock for Desktop (Mac, Windows, Linux)

At first: Thanks you so much for wakelock and the web support!

I am one of the maintainer of the chewie package and we're using wakelock, but would also like to support desktop plattforms in future.

Is it possible to have wakelock_platform_interface or wakelock for mac, windows and linux?

Thanks in regards.
Rebar :)

regression: Plugin project :import_js_library not found.

After upgrading to 0.2.0+1 I'm getting this "error" (in quotes because it's shown in red but it doesn't actually prevents it from working) when running flutter run in my project:

Plugin project :import_js_library not found.

Wakelock requires a foreground activity

Hi - I'm consistently seeing this exception on Android:

Exception has occurred.
PlatformException (PlatformException(no_activity, wakelock requires a foreground activity, null))

As best I can tell, I have a foreground activity (if that means that the app is in the foreground at the point it happens).

Any idea why it's happening? Many thanks.

'Flutter/Flutter.h' file not found on Flutter 2.0.1

My project is not ready for nullsafety, and still use wakelock-0.2.1+1, its generate following error while running the application

1 error generated. /Library/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.1+1/ios/Classes/messages.m:4:9: fatal error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h> ^~~~~~~~~~~~~~~~~~~

its only happened with latest flutter version (2.0.1), when i downgrade it to 1.22.6, its working really fine, is there any ways to solve this?

Flutter doctor result :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.0)
[✓] Connected device (4 available)

cannot find symbol creativecreatorormaybenot.wakelock.WakelockPlugin()

Linux version : 20.04

Flutter doctor:

Screenshot from 2020-07-31 11-28-50

What i have tried.

  1. delete pubspeck.lock file and run flutter pub get.

  2. cd android && ./gradlew clean assembleDebug && ./gradlew build --refresh-dependencies
    this throws this error
    Screenshot from 2020-07-31 11-45-17

  3. remove wakelock from {path_to_flutter_installation}/flutter/.pub-cache/hosted/pub.dartlang.org && rm -rfv wakelock-0.1.4+2/ then flutter pub get.

Error.

Screenshot from 2020-07-31 11-39-25

Web support

Web support should be added as soon as wakelock functionality is available for the web.

It is currently only an experimental feature, see https://web.dev/wakelock/.

The w3c specification can be found here.

Fix Android CI build

As you can see here, the iOS integration test is successful, however, the Android setup times out.
Thus, I removed Android from CI for now.

Android should be included in CI.
Additionally, the Travis CI scripts should be improved in general, e.g. not using travis_retry.

There is problem in WAKELOCK dependency with Xcode 12.

Third-party dependency uses WAKELOCK dependency which causes failure in Xcode 12, Can you please solve this asap?

Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

In file included from /Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:1:
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.h:3:38: error: no type or protocol named 'FlutterPlugin'
@interface WakelockPlugin : NSObject
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:4:41: error: no type or protocol named 'FlutterPluginRegistrar'
+ (void)registerWithRegistrar:(NSObject)registrar {
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:12:27: error: expected a type
- (void)handleMethodCall:(FlutterMethodCall
)call result:(FlutterResult)result {
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:12:59: error: expected a type
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:5:3: error: use of undeclared identifier 'FlutterMethodChannel'
FlutterMethodChannel* channel = [FlutterMethodChannel
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:5:25: error: use of undeclared identifier 'channel'
FlutterMethodChannel* channel = [FlutterMethodChannel
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:5:36: error: use of undeclared identifier 'FlutterMethodChannel'
FlutterMethodChannel* channel = [FlutterMethodChannel
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:9:14: error: no visible @interface for 'NSObject' declares the selector 'addMethodCallDelegate:channel:'
[registrar addMethodCallDelegate:instance channel:channel];
~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:13:39: error: property 'method' not found on object of type '__strong id'
if ([@"toggle" isEqualToString:call.method]) {
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:14:29: error: property 'arguments' not found on object of type '__strong id'
NSNumber *enable = call.arguments[@"enable"];
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:18:13: error: called object type 'id' is not a function or function pointer
result(nil);
~~~~~~^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:21:13: error: called object type 'id' is not a function or function pointer
result(nil);
~~~~~~^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:23:49: error: property 'method' not found on object of type '__strong id'
} else if ([@"isEnabled" isEqualToString:call.method]) {
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:24:11: error: called object type 'id' is not a function or function pointer
result([NSNumber numberWithBool:[[UIApplication sharedApplication] isIdleTimerDisabled]]);
~~~~~~^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:26:11: error: called object type 'id' is not a function or function pointer
result(FlutterMethodNotImplemented);
~~~~~~^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:9:53: error: use of undeclared identifier 'channel'
[registrar addMethodCallDelegate:instance channel:channel];
^
/Users/waqas/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+2/ios/Classes/WakelockPlugin.m:26:12: error: use of undeclared identifier 'FlutterMethodNotImplemented'
result(FlutterMethodNotImplemented);

`wakelock` doesn't have a main class defined

The plugin wakelock doesn't have a main class defined in
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\wakelock-0.2.1+1\android\src\main\java\creativemaybeno\wakelock\WakelockPlugin.java or
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\wakelock-0.2.1+1\android\src\main\kotlin\creativemaybeno\wakelock\WakelockPlugin.kt. This is likely to due to an incorrect androidPackage: creativemaybeno.wakelock or mainClass entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider
using a different plugin in the meanwhile.

Flutter doctor:
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.746], locale de-CH)
• Flutter version 1.22.6 at C:\src\flutter
• Framework revision 9b2d32b605 (12 days ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\TERMINAL\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

FCMService: Invalid notification content

i am getting this error about FCM after importing wakelock library in my flutter project:

D/FCMService: FCM received
D/FCMService: Invalid notification content

but if i remove the wakelock plugin from my dependencies list , it works well as it was working before!
what's wrong?

getter and function `enabled` have the same name

image

cheking the source code i can see two getters the do the same, but you deprected another valid one (and in latest release even removed it at all)
why did you added enabled getter that causes this exception, did you even test your change?

i'm using wakelock: ^0.2.1+1

flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-8.0.pre.374, on Microsoft Windows [Version 10.0.19041.685], locale ru-RU)
    • Flutter version 1.24.0-8.0.pre.374 at c:\dev\src\flutter
    • Framework revision 183f0e797a (7 weeks ago), 2020-11-26 19:12:28 +0100
    • Engine revision 20caf54969
    • Dart version 2.12.0 (build 2.12.0-76.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\danya\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.52.1)
    • VS Code at C:\Users\danya\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.1

[✓] Connected device (2 available)
    • Redmi Note 5 (mobile)   • 40c9f14       • android-arm64 • Android 9 (API 28)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86   • Android 11 (API 30) (emulator)

• No issues found!

Android integration tests not working on GitHub Actions

Since #21, i.e. since the migration from Travis CI to GitHub Actions and the rework of the integration tests, only the integration tests are failing only on Android only in CI.

Currently, this means that flutter drive --target=test_driver/app.dart has to be run locally from example before publishing to make sure that the ignored integration tests on Android during the Checks and Publish workflows are fine.

See also:

iOS 13.4.1 goes always in standby

i tried this ones to keep awake a iOS device (iOS 13.4.1 , iPhone 11 Pro Max):

      await Wakelock.enable();
      await Wakelock.toggle(on: true);

every function called without an catched error, but no matter, which function, always go the device in black screen (standby).

is this a bug in the plugin. when the functions are called on iOS 13.4.1 devices?

i know for some weeks, the plugin works fine on iOS and the device skipped standby.

android.permission.WAKE_LOCK

Like Screen, does this package require the WAKE_LOCK permission?

<uses-permission android:name="android.permission.WAKE_LOCK" />

Shouldn't this be added to the Readme?

MissingPluginException(No implementation found for method toggle on channel wakelock

Hi! I get this error in debug console when I use wakelock:

E/flutter (17630): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method toggle on channel wakelock)

Here's my code:

import 'package:wakelock/wakelock.dart';
class _MyHomePageState extends State<MyHomePage> {
bool on = true;
// The following statement enables the wakelock.
 void initState() {
    super.initState();
    Wakelock.toggle(on: on);
}

Also I do have this added in my AndroidManifest.xml <uses-permission android:name="android.permission.WAKE_LOCK" />
And this in dependencies : wakelock: ^0.1.4+2

How can I solve this?

Add macOS support

Description

This issue tracks the wakelock integration for macOS specifically.

Related issues

There is another issue addressing desktop support in general: #57

Challenges

As wakelock uses pigeon for handling platform calls (which is awesome), we cannot use the existing integration for macOS. This is because of flutter/flutter#73738 (pigeon missing macOS support).

Instead, we will need to manually do the platform calls.

flutter pub get not working with version 0.5.0+2

Hi,

i juste tried a few times to pub get the package wakelock: ^0.5.0+2
i've got the following error:

**_**The current Dart SDK version is 2.10.5.

Because myapp depends on wakelock >=0.3.0-nullsafety.0 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.
pub get failed (1; Because myapp depends on wakelock >=0.3.0-nullsafety.0 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.)
Process finished with exit code 1._

i guess something must be wrong with the version check and/or null safety cause the package is supposed to require SDK version 2.12.0. it looks like beeing impossible cause i downloaded the last Dart version (2.10.5).

Could you please help me understanding the problem ?
thanks in advance.

Patrick

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.