diff --git a/sites/docs/src/content/platform-integration/web/faq.md b/sites/docs/src/content/platform-integration/web/faq.md index fe45d22cee..ca914b196a 100644 --- a/sites/docs/src/content/platform-integration/web/faq.md +++ b/sites/docs/src/content/platform-integration/web/faq.md @@ -99,7 +99,9 @@ Some plugins require platform-specific imports, particularly if they use the file system, which is not accessible from the browser. To use these plugins in your app, use conditional imports. -When compiling for WebAssembly, check for `dart.library.js_interop` (rather than `dart.library.js` or `dart.library.html`, which are not supported on Wasm): +When compiling for WebAssembly, check for `dart.library.js_interop` +(rather than `dart.library.js` or `dart.library.html`, +which are not supported on Wasm): ```dart import 'fallback.dart' @@ -107,8 +109,8 @@ import 'fallback.dart' if (dart.library.js) 'legacy_web_interop.dart'; ``` -For more details, see the [documentation for conditional imports][] on [dart.dev]({{site.dart-site}}). - +For more details, see the [documentation for conditional imports][] +on [dart.dev]({{site.dart-site}}). ### Does Flutter web support concurrency? diff --git a/sites/docs/src/content/platform-integration/web/wasm.md b/sites/docs/src/content/platform-integration/web/wasm.md index b0479fe4d4..1ab4d88dbe 100644 --- a/sites/docs/src/content/platform-integration/web/wasm.md +++ b/sites/docs/src/content/platform-integration/web/wasm.md @@ -178,9 +178,15 @@ static JS interop: - [`package:web`][], which replaces `dart:html` (and other web libraries) - [`dart:js_interop`][], which replaces `package:js` and `dart:js` -For a detailed guide on migrating existing code, see the [`package:web` migration guide][]. - -When compiling to Wasm, be aware of runtime differences in JS interop types (such as `is`/`as` type casts and Zone propagation in callbacks). For details, see Dart's [JS interop types documentation]({{site.dart-site}}/interop/js-interop/js-types#compatibility-type-checks-and-casts) and the [package:web Zones section]({{site.dart-site}}/interop/js-interop/package-web#zones). +For a detailed guide on migrating existing code, +see the [`package:web` migration guide][]. + +When compiling to Wasm, be aware of runtime differences +in JS interop types (such as `is`/`as` type casts +and Zone propagation in callbacks). +For details, check out Dart's +[JS interop types documentation]({{site.dart-site}}/interop/js-interop/js-types#compatibility-type-checks-and-casts) +and the [package:web Zones section]({{site.dart-site}}/interop/js-interop/package-web#zones). To learn more about JS interop in Dart, see Dart's [JS interop][] documentation page.