Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7b2e6e5

Browse files
committed
[web] Migrate Flutter Web to JS static interop - 1.
This is the first CL in a series of cls to migrate Flutter Web to JS static interop.
1 parent ac21195 commit 7b2e6e5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

lib/web_ui/lib/src/engine/configuration.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ external JsFlutterConfiguration? get _jsConfiguration;
162162

163163
/// The JS bindings for the object that's set as `window.flutterConfiguration`.
164164
@JS()
165-
@anonymous
166-
class JsFlutterConfiguration {
165+
@staticInterop
166+
class JsFlutterConfiguration {}
167+
168+
extension JsFlutterConfigurationExtension on JsFlutterConfiguration {
167169
external String? get canvasKitBaseUrl;
168170
external bool? get canvasKitForceCpuOnly;
169171
external bool? get debugShowSemanticsNodes;

lib/web_ui/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment:
66
sdk: ">=2.12.0-0 <3.0.0"
77

88
dependencies:
9-
js: 0.6.3
9+
js: 0.6.4
1010
meta: 1.3.0
1111

1212
dev_dependencies:

web_sdk/web_engine_tester/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
sdk: ">=2.12.0-0 <3.0.0"
66

77
dependencies:
8-
js: 0.6.3
8+
js: 0.6.4
99
stream_channel: 2.1.0
1010
test: 1.17.7
1111
webkit_inspection_protocol: 1.0.0

web_sdk/web_test_utils/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
collection: 1.15.0
99
crypto: 3.0.1
1010
image: 3.0.1
11-
js: 0.6.3
11+
js: 0.6.4
1212
meta: 1.3.0
1313
path: 1.8.0
1414
process: 4.2.3

0 commit comments

Comments
 (0)