mirror of
https://github.com/flutter/packages.git
synced 2025-07-03 00:49:32 +08:00
Add library annotations for js interop (#6216)
These are needed for 3.3 in order to address issue https://github.com/dart-lang/sdk/issues/54801. This commit also cleans up some unnecessary annotations. Also publishes 0.5.7. https://github.com/dart-lang/sdk/issues/55039
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
## 0.5.6+1
|
||||||
|
|
||||||
|
* Fixes an issue where `dart:js_interop` object literal factories did not
|
||||||
|
compile with dart2js.
|
||||||
|
|
||||||
## 0.5.6
|
## 0.5.6
|
||||||
|
|
||||||
* Adds support for `MapConfiguration.style`.
|
* Adds support for `MapConfiguration.style`.
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
// TODO(srujzs): Needed for https://github.com/dart-lang/sdk/issues/54801. Once
|
||||||
|
// we publish a version with a min SDK constraint that contains this fix,
|
||||||
|
// remove.
|
||||||
|
@JS()
|
||||||
|
library;
|
||||||
|
|
||||||
import 'dart:js_interop';
|
import 'dart:js_interop';
|
||||||
|
|
||||||
import 'package:web/web.dart' as web;
|
import 'package:web/web.dart' as web;
|
||||||
|
@ -2,14 +2,18 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
// TODO(srujzs): Needed for https://github.com/dart-lang/sdk/issues/54801. Once
|
||||||
|
// we publish a version with a min SDK constraint that contains this fix,
|
||||||
|
// remove.
|
||||||
|
@JS()
|
||||||
|
library;
|
||||||
|
|
||||||
import 'dart:js_interop';
|
import 'dart:js_interop';
|
||||||
|
|
||||||
/// The interop type for a Google Maps Map Styler.
|
/// The interop type for a Google Maps Map Styler.
|
||||||
///
|
///
|
||||||
/// See: https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
/// See: https://developers.google.com/maps/documentation/javascript/style-reference#stylers
|
||||||
@JS()
|
@JS()
|
||||||
@staticInterop
|
|
||||||
@anonymous
|
|
||||||
extension type MapStyler._(JSObject _) implements JSObject {
|
extension type MapStyler._(JSObject _) implements JSObject {
|
||||||
/// Create a new [MapStyler] instance.
|
/// Create a new [MapStyler] instance.
|
||||||
external factory MapStyler({
|
external factory MapStyler({
|
||||||
|
@ -2,7 +2,7 @@ name: google_maps_flutter_web
|
|||||||
description: Web platform implementation of google_maps_flutter
|
description: Web platform implementation of google_maps_flutter
|
||||||
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_web
|
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_web
|
||||||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
|
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
|
||||||
version: 0.5.6
|
version: 0.5.6+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.3.0
|
sdk: ^3.3.0
|
||||||
|
Reference in New Issue
Block a user