mirror of
https://github.com/flutter/flutter.git
synced 2026-02-05 19:28:51 +08:00
Fixes flutter/flutter#172405 On Flutter Web, calling `MaterialApp(showPerformanceOverlay: true)` reaches `SceneBuilder.addPerformanceOverlay`, which previously threw `UnimplementedError` and crashed apps. This change makes the method a no-op on Web and logs a one-time warning: "showPerformanceOverlay is not supported on Flutter Web. Use DevTools Performance (Timeline) instead." Rationale: Avoid crashes and guide developers to the supported tooling on Web. Testing: - Relied on CI for web_ui builds and tests. - (Manual reproduction before fix) Enabling `showPerformanceOverlay` on Web produced UnimplementedError from `canvaskit/layer_scene_builder.dart`. --------- Co-authored-by: Mouad Debbar <mdebbar@google.com>
Flutter Engine
Setting up the Engine development environment
See here
gclient bootstrap
Flutter engine uses gclient to manage dependencies.
If you've already cloned the flutter repository: