diff --git a/packages/patrol_devtools_extension/CHANGELOG.md b/packages/patrol_devtools_extension/CHANGELOG.md new file mode 100644 index 000000000..3e3e789bf --- /dev/null +++ b/packages/patrol_devtools_extension/CHANGELOG.md @@ -0,0 +1,4 @@ +## 0.2.1 + +- Make details view panel scrollable when content overflows (#2358) +- Copy selector arguments with single quote (#2358) 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 43827c61d..704ce31f9 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 @@ -16,43 +16,43 @@ class NativeViewDetails extends StatelessWidget { Widget build(BuildContext context) { return ScaffoldMessenger( child: Scaffold( - body: Column( - mainAxisSize: MainAxisSize.min, - children: [ - const _HeaderDecoration( - child: Padding( - padding: EdgeInsets.symmetric(horizontal: denseSpacing), - child: SizedBox( - width: double.infinity, - child: Align( - alignment: Alignment.centerLeft, - child: Text( - 'Native view details', - maxLines: 1, - ), - ), + body: currentNode == null + ? Container( + alignment: Alignment.center, + padding: const EdgeInsets.all(densePadding), + child: const Text( + 'Select a node to view its details', + textAlign: TextAlign.center, + maxLines: 4, ), - ), - ), - Expanded( - child: currentNode != null - ? Padding( + ) + : SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const _HeaderDecoration( + child: Padding( + padding: EdgeInsets.symmetric(horizontal: denseSpacing), + child: SizedBox( + width: double.infinity, + child: Align( + alignment: Alignment.centerLeft, + child: Text( + 'Native view details', + maxLines: 1, + ), + ), + ), + ), + ), + Padding( padding: const EdgeInsets.symmetric(horizontal: denseSpacing), child: _NodeDetails(node: currentNode!), - ) - : Container( - alignment: Alignment.center, - padding: const EdgeInsets.all(densePadding), - child: const Text( - 'Select a node to view its details', - textAlign: TextAlign.center, - maxLines: 4, - ), ), - ), - ], - ), + ], + ), + ), ), ); } @@ -279,7 +279,7 @@ class _KeyValueItem { _KeyValueItem(this.key, Object? val) : important = val != null { value = switch (val) { null => 'null', - final String v => '"$v"', + final String v => "'$v'", _ => val.toString(), }; diff --git a/packages/patrol_devtools_extension/pubspec.yaml b/packages/patrol_devtools_extension/pubspec.yaml index 6fd783eb2..5d8620b4f 100644 --- a/packages/patrol_devtools_extension/pubspec.yaml +++ b/packages/patrol_devtools_extension/pubspec.yaml @@ -2,7 +2,7 @@ name: patrol_devtools_extension description: A new Flutter project. publish_to: none -version: 0.2.0+1 +version: 0.2.1 environment: sdk: '>=3.2.0 <4.0.0'