From bf578004847a2d5d9723bc0fe1d4685881665243 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Wed, 2 Oct 2024 10:19:05 +0200 Subject: [PATCH] fix lints --- example/google_jsapi_picker_example.dart | 2 +- example/test_config.dart | 2 +- lib/picker.dart | 4 ++-- pubspec.yaml | 5 +++++ test/all_test_browser.dart | 2 +- test/picker_test.dart | 2 +- test/test_config.dart | 2 +- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/example/google_jsapi_picker_example.dart b/example/google_jsapi_picker_example.dart index aa8410e..c9abc4e 100644 --- a/example/google_jsapi_picker_example.dart +++ b/example/google_jsapi_picker_example.dart @@ -1,4 +1,4 @@ -library google_jsapi_example; +library; import 'dart:html'; diff --git a/example/test_config.dart b/example/test_config.dart index 17b21fd..ef638ed 100644 --- a/example/test_config.dart +++ b/example/test_config.dart @@ -1,4 +1,4 @@ -library test_config; +library; class AppOptions { // The developer key needed for the picker API diff --git a/lib/picker.dart b/lib/picker.dart index 1094bc9..cd18436 100644 --- a/lib/picker.dart +++ b/lib/picker.dart @@ -1,4 +1,4 @@ -library gapi_picker; +library; import 'dart:async'; import 'dart:js'; @@ -32,7 +32,7 @@ class Picker { _jsObject!.callMethod('setVisible', [visible]); } - /// Return Future on cancel + /// Throw on cancel Future pick() { final completer = Completer(); visible = true; diff --git a/pubspec.yaml b/pubspec.yaml index 4ba7f63..aa39a01 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,3 +31,8 @@ dev_dependencies: test: any process_run: '>=1.0.0' googleapis_auth: '>=1.6.0' + tekartik_js_utils: + git: + url: https://github.com/tekartik/js_utils.dart + ref: dart3a + path: js_utils diff --git a/test/all_test_browser.dart b/test/all_test_browser.dart index 5c5b482..011723d 100644 --- a/test/all_test_browser.dart +++ b/test/all_test_browser.dart @@ -1,4 +1,4 @@ -library all_test_browser; +library; import 'picker_test.dart' as picker_test; diff --git a/test/picker_test.dart b/test/picker_test.dart index 3a5a7cc..d7e07d9 100644 --- a/test/picker_test.dart +++ b/test/picker_test.dart @@ -1,5 +1,5 @@ @TestOn('browser') -library picker_test; +library; import 'dart:async'; diff --git a/test/test_config.dart b/test/test_config.dart index 5e62b90..a58b518 100644 --- a/test/test_config.dart +++ b/test/test_config.dart @@ -1,4 +1,4 @@ -library test_config; +library; class AppOptions { // The developer key needed for the picker API