diff --git a/wakelock_plus/lib/src/web_impl/js_wakelock.dart b/wakelock_plus/lib/src/web_impl/js_wakelock.dart index ccbca5b..38b7822 100644 --- a/wakelock_plus/lib/src/web_impl/js_wakelock.dart +++ b/wakelock_plus/lib/src/web_impl/js_wakelock.dart @@ -1,5 +1,5 @@ @JS('Wakelock') -library wakelock.js; +library; import 'dart:js_interop'; diff --git a/wakelock_plus/pubspec.yaml b/wakelock_plus/pubspec.yaml index 29337d6..5beb3eb 100644 --- a/wakelock_plus/pubspec.yaml +++ b/wakelock_plus/pubspec.yaml @@ -31,7 +31,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^3.0.2 + flutter_lints: ^5.0.0 pigeon: ^21.2.0 # dart run pigeon --input "pigeons/messages.dart" # For information on the generic Dart part of this file, see the diff --git a/wakelock_plus/test/wakelock_plus_web_plugin_test.dart b/wakelock_plus/test/wakelock_plus_web_plugin_test.dart index 241b7a4..2e5c8be 100644 --- a/wakelock_plus/test/wakelock_plus_web_plugin_test.dart +++ b/wakelock_plus/test/wakelock_plus_web_plugin_test.dart @@ -1,5 +1,5 @@ @TestOn('browser') -library wakelock_plus_library_plugin_test; +library; import 'package:flutter_test/flutter_test.dart'; import 'package:wakelock_plus/src/wakelock_plus_web_plugin.dart';