Pull Request Overview
This PR adds theme information support to the Flutter Widget Preview and implements authentication frame bouncing functionality. The changes enable proper theme synchronization between VS Code and the widget preview iframe while providing authentication handling for DevTools connections.
- Refactored widget preview to accept WebViewUrls instead of simple strings for enhanced URL handling
- Added theme detection and transmission functionality to pass VS Code theme information to widget preview
- Implemented authentication URL handling to support DTD connections
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/extension/sdk/dev_tools/embedded_view.ts | Removed extra blank line for code cleanup |
| src/extension/flutter/widget_preview/widget_preview_manager.ts | Updated to use WebViewUrls structure and include DTD authentication URLs |
| src/extension/flutter/widget_preview/webviews.ts | Added comprehensive theme handling, URL authentication, and dynamic iframe source management |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
DanTup deleted the widget-preview-auth-and-theme branch
September 22, 2025 14:40