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

* Add track-widget-creation flag to attach command

* use the flag
This commit is contained in:
Keerti Parthasarathy
2019-04-22 07:51:33 -07:00
committed by GitHub
parent 6e1b143fed
commit b593f5167b

View File

@@ -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'],