From ce239a47e61a3e471588f6016cbcd564605734f2 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Fri, 24 Apr 2026 10:12:10 -0700 Subject: [PATCH 1/2] Update widget previewer documentation for dependencies Consolidate information about widgets with transitive dependencies on dart:io and dart:ffi. --- src/content/tools/widget-previewer.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/content/tools/widget-previewer.md b/src/content/tools/widget-previewer.md index 7eeedec0e7a..b76ba0d0172 100644 --- a/src/content/tools/widget-previewer.md +++ b/src/content/tools/widget-previewer.md @@ -330,10 +330,9 @@ should be aware of: within other environments, such as when embedded in IDEs. - Widgets with transitive dependencies on `dart:io` will - load correctly, but all APIs from `dart:io` will throw an - exception when invoked. Widgets with transitive dependencies - on `dart:ffi` will fail to load completely ([#166431]). + Widgets with transitive dependencies on `dart:io` or `dart:ffi` will + load correctly, but all APIs from `dart:io` or `dart:ffi` will throw an + exception when invoked. See the [Dart documentation on conditional imports] for details on how to structure your application to cleanly support From 505ac47c9de1f109be2428ed30026913e30e7f74 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Fri, 24 Apr 2026 10:28:21 -0700 Subject: [PATCH 2/2] Update src/content/tools/widget-previewer.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/content/tools/widget-previewer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/tools/widget-previewer.md b/src/content/tools/widget-previewer.md index b76ba0d0172..2168fce3152 100644 --- a/src/content/tools/widget-previewer.md +++ b/src/content/tools/widget-previewer.md @@ -331,8 +331,8 @@ should be aware of: IDEs. Widgets with transitive dependencies on `dart:io` or `dart:ffi` will - load correctly, but all APIs from `dart:io` or `dart:ffi` will throw an - exception when invoked. + load correctly, but all APIs from these libraries will throw an + exception when invoked. See the [Dart documentation on conditional imports] for details on how to structure your application to cleanly support