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 {
'project-root',
hide: !verboseHelp,
help: 'Normally used only in run target',
)..addFlag('track-widget-creation',
hide: !verboseHelp,
help: 'Track widget creation locations.',
defaultsTo: false,
)..addFlag('machine',
hide: !verboseHelp,
negatable: false,
......@@ -239,7 +243,7 @@ class AttachCommand extends FlutterCommand {
final bool useHot = getBuildInfo().isDebug;
final FlutterDevice flutterDevice = await FlutterDevice.create(
device,
trackWidgetCreation: false,
trackWidgetCreation: argResults['track-widget-creation'],
dillOutputPath: argResults['output-dill'],
fileSystemRoots: argResults['filesystem-root'],
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