Remove unnecessary changes
diff --git a/packages/devtools_app/.flutter-plugins-dependencies b/packages/devtools_app/.flutter-plugins-dependencies deleted file mode 100644 index a015c88..0000000 --- a/packages/devtools_app/.flutter-plugins-dependencies +++ /dev/null
@@ -1 +0,0 @@ -{"dependencyGraph":[{"name":"image_gallery_saver","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"devtools_app","dependencies":[]}]} \ No newline at end of file
diff --git a/packages/devtools_app/lib/src/inspector/diagnostics_node.dart b/packages/devtools_app/lib/src/inspector/diagnostics_node.dart index bf9d4e9..8d7bde3 100644 --- a/packages/devtools_app/lib/src/inspector/diagnostics_node.dart +++ b/packages/devtools_app/lib/src/inspector/diagnostics_node.dart
@@ -67,9 +67,7 @@ bool get isFlex => ['Row', 'Column', 'Flex'].contains(widgetRuntimeType); - int get flexFactor => cachedProperties - ?.firstWhere((property) => property.name == 'flex', orElse: () => null) - ?.getIntMember('value'); + int get flexFactor => json['flexFactor']; RemoteDiagnosticsNode get renderObject => RemoteDiagnosticsNode(json['renderObject'], inspectorService, false, this); @@ -331,10 +329,6 @@ return JsonUtils.getStringMember(json, memberName); } - int getIntMember(String memberName) { - return JsonUtils.getIntMember(json, memberName); - } - bool getBooleanMember(String memberName, bool defaultValue) { if (json[memberName] == null) { return defaultValue;
diff --git a/packages/devtools_app/lib/src/inspector/flutter/inspector_data_models.dart b/packages/devtools_app/lib/src/inspector/flutter/inspector_data_models.dart index c074784..1e3db96 100644 --- a/packages/devtools_app/lib/src/inspector/flutter/inspector_data_models.dart +++ b/packages/devtools_app/lib/src/inspector/flutter/inspector_data_models.dart
@@ -151,14 +151,6 @@ return '${min.toStringAsFixed(1)}<=$axis<=${max.toStringAsFixed(1)}'; } - /// Return the string inside the parentheses - /// example: - /// getValue('BoxConstraints(value)'); # returns 'value' - static String getValue(String description) { - return description.substring( - description.indexOf('(') + 1, description.indexOf(')')); - } - static BoxConstraints deserializeConstraints(Map<String, Object> json) { // TODO(albertusangga): Support SliverConstraint if (json == null || json['type'] != 'BoxConstraints') return null;