Skip to content

Commit

Permalink
[web] Migrate Flutter Web to JS static interop - 1.
Browse files Browse the repository at this point in the history
This is the first CL in a series of cls to migrate Flutter Web to JS
static interop.
  • Loading branch information
joshualitt committed Apr 4, 2022
1 parent ac21195 commit 7b2e6e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/web_ui/lib/src/engine/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ external JsFlutterConfiguration? get _jsConfiguration;

/// The JS bindings for the object that's set as `window.flutterConfiguration`.
@JS()
@anonymous
class JsFlutterConfiguration {
@staticInterop
class JsFlutterConfiguration {}

extension JsFlutterConfigurationExtension on JsFlutterConfiguration {
external String? get canvasKitBaseUrl;
external bool? get canvasKitForceCpuOnly;
external bool? get debugShowSemanticsNodes;
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ environment:
sdk: ">=2.12.0-0 <3.0.0"

dependencies:
js: 0.6.3
js: 0.6.4
meta: 1.3.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion web_sdk/web_engine_tester/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment:
sdk: ">=2.12.0-0 <3.0.0"

dependencies:
js: 0.6.3
js: 0.6.4
stream_channel: 2.1.0
test: 1.17.7
webkit_inspection_protocol: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion web_sdk/web_test_utils/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
collection: 1.15.0
crypto: 3.0.1
image: 3.0.1
js: 0.6.3
js: 0.6.4
meta: 1.3.0
path: 1.8.0
process: 4.2.3
Expand Down

0 comments on commit 7b2e6e5

Please sign in to comment.