diff --git a/packages/patrol_devtools_extension/lib/api/contracts.dart b/packages/patrol_devtools_extension/lib/api/contracts.dart index 6d058d781..6bd6bd882 100644 --- a/packages/patrol_devtools_extension/lib/api/contracts.dart +++ b/packages/patrol_devtools_extension/lib/api/contracts.dart @@ -300,7 +300,9 @@ class NativeView with EquatableMixin { final bool focused; final bool enabled; final int? childCount; + //TODO: rename to "resourceId" for consistency final String? resourceName; + //TODO: rename to "pkg" for consistency final String? applicationPackage; final List children; diff --git a/packages/patrol_devtools_extension/lib/native_inspector/native_view_details.dart b/packages/patrol_devtools_extension/lib/native_inspector/native_view_details.dart index 05433e741..4ced99338 100644 --- a/packages/patrol_devtools_extension/lib/native_inspector/native_view_details.dart +++ b/packages/patrol_devtools_extension/lib/native_inspector/native_view_details.dart @@ -102,13 +102,13 @@ class _NodeDetails extends HookWidget { final view = node.nativeView; final rows = [ - _KeyValueItem('applicationPackage:', view.applicationPackage), + _KeyValueItem('pkg:', view.applicationPackage), _KeyValueItem('childCount:', view.childCount), _KeyValueItem('className:', view.className), _KeyValueItem('contentDescription:', view.contentDescription), _KeyValueItem('enabled:', view.enabled), _KeyValueItem('focused:', view.focused), - _KeyValueItem('resourceName:', view.resourceName), + _KeyValueItem('resourceId:', view.resourceName), _KeyValueItem('text:', view.text), ];