Skip to content

Commit c88f681

Browse files
committed
Add library annotations for js interop
These are needed for 3.3 in order to address issue dart-lang/sdk#54801. This commit also cleans up some unnecessary annotations.
1 parent 3214a67 commit c88f681

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/google_maps_flutter/google_maps_flutter_web/lib/src/dom_window_extension.dart

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// TODO(srujzs): Needed for https://github.com/dart-lang/sdk/issues/54801. Once
6+
// we publish a version with a min SDK constraint that contains this fix,
7+
// remove.
8+
@JS()
9+
library;
10+
511
import 'dart:js_interop';
612

713
import 'package:web/web.dart' as web;

packages/google_maps_flutter/google_maps_flutter_web/lib/src/map_styler.dart

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// TODO(srujzs): Needed for https://github.com/dart-lang/sdk/issues/54801. Once
6+
// we publish a version with a min SDK constraint that contains this fix,
7+
// remove.
8+
@JS()
9+
library;
10+
511
import 'dart:js_interop';
612

713
/// The interop type for a Google Maps Map Styler.
814
///
915
/// See: https://developers.google.com/maps/documentation/javascript/style-reference#stylers
1016
@JS()
11-
@staticInterop
12-
@anonymous
1317
extension type MapStyler._(JSObject _) implements JSObject {
1418
/// Create a new [MapStyler] instance.
1519
external factory MapStyler({

0 commit comments

Comments
 (0)