-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-evalevaluation support on the webevaluation support on the web
Milestone
Description
Issue
Widget inspector for web platform does not show layout
Repro
- Create a flutter project with following code:
// @dart=2.9
import 'package:flutter/widgets.dart';
void main() {
return runApp(
Column(children: [
const Center(
child:
Text('Hello, world!',
key: Key('title'),
textDirection: TextDirection.ltr
)
)
]
));
}
- Start debugging in VSCode (for web plaftorm)
- Open devtools widget inspector page
- Observe empty layout
Expected result (from iPhone simulator):
How to see the evaluated expression and result in chrome
- Start VSCode on the app code above
- Set the verbose mode in launch.json flutter configuration:
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"args": ["-v"],
}
- Set a breakpoint inside
initServiceExtensionsin
flutter/flutter/packages/flutter/lib/src/widgets/widget_inspector.dart - Set flutter to run in chrome (web-javascript)
- Start debugging
- On breakpoint, copy and paste the dart expression (starting after
return library.and ending before next line) from the information in the following bug:
- Copy and paste the JS expression from the VCCode debug console window to the chrome console window
- Observe result:
VM973:50 Uncaught SyntaxError: Identifier 'e' has already been declared
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-evalevaluation support on the webevaluation support on the web

