Unverified Commit b593f516 authored by Keerti Parthasarathy's avatar Keerti Parthasarathy Committed by GitHub

Add track-widget-creation flag to attach command (#31262)

* Add track-widget-creation flag to attach command

* use the flag
parent 6e1b143f
...@@ -87,6 +87,10 @@ class AttachCommand extends FlutterCommand { ...@@ -87,6 +87,10 @@ class AttachCommand extends FlutterCommand {
'project-root', 'project-root',
hide: !verboseHelp, hide: !verboseHelp,
help: 'Normally used only in run target', help: 'Normally used only in run target',
)..addFlag('track-widget-creation',
hide: !verboseHelp,
help: 'Track widget creation locations.',
defaultsTo: false,
)..addFlag('machine', )..addFlag('machine',
hide: !verboseHelp, hide: !verboseHelp,
negatable: false, negatable: false,
...@@ -239,7 +243,7 @@ class AttachCommand extends FlutterCommand { ...@@ -239,7 +243,7 @@ class AttachCommand extends FlutterCommand {
final bool useHot = getBuildInfo().isDebug; final bool useHot = getBuildInfo().isDebug;
final FlutterDevice flutterDevice = await FlutterDevice.create( final FlutterDevice flutterDevice = await FlutterDevice.create(
device, device,
trackWidgetCreation: false, trackWidgetCreation: argResults['track-widget-creation'],
dillOutputPath: argResults['output-dill'], dillOutputPath: argResults['output-dill'],
fileSystemRoots: argResults['filesystem-root'], fileSystemRoots: argResults['filesystem-root'],
fileSystemScheme: argResults['filesystem-scheme'], fileSystemScheme: argResults['filesystem-scheme'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment