@@ -1237,14 +1237,10 @@ Paint _defaultPaint(ColorScheme colorScheme) =>
1237
1237
..color = colorScheme.treeGuidelineColor
1238
1238
..strokeWidth = chartLineStrokeWidth;
1239
1239
1240
- /// The distance (on the x-axis) between the expand/collapse and the start of
1241
- /// the row, as determined by a percentage of the [inspectorColumnIndent] .
1242
- const _expandCollapseToRowStartXDistancePercentage = 0.68 ;
1243
-
1244
1240
/// The distance (on the x-axis) between the center of the widget icon and the
1245
1241
/// start of the row, as determined by a percentage of the
1246
1242
/// [inspectorColumnIndent] .
1247
- const _iconCenterToRowStartXDistancePercentage = 0.15 ;
1243
+ const _iconCenterToRowStartXDistancePercentage = 0.41 ;
1248
1244
1249
1245
/// The distance (on the y-axis) between the bottom of the widget icon and the
1250
1246
/// top of the row, as determined by a percentage of the [inspectorRowHeight] .
@@ -1277,12 +1273,11 @@ class _RowPainter extends CustomPainter {
1277
1273
1278
1274
final node = row.node;
1279
1275
final showExpandCollapse = node.showExpandCollapse;
1280
- final distanceFromExpandCollapseToRowStart =
1281
- inspectorColumnIndent * _expandCollapseToRowStartXDistancePercentage ;
1276
+ final distanceFromIconCenterToRowStart =
1277
+ inspectorColumnIndent * _iconCenterToRowStartXDistancePercentage ;
1282
1278
for (final tick in row.ticks) {
1283
1279
final expandCollapseX =
1284
- _controller.getDepthIndent (tick) -
1285
- distanceFromExpandCollapseToRowStart;
1280
+ _controller.getDepthIndent (tick) - distanceFromIconCenterToRowStart;
1286
1281
// Draw a vertical line for each tick identifying a connection between
1287
1282
// an ancestor of this node and some other node in the tree.
1288
1283
canvas.drawLine (
@@ -1296,11 +1291,11 @@ class _RowPainter extends CustomPainter {
1296
1291
if (row.lineToParent) {
1297
1292
final parentExpandCollapseX =
1298
1293
_controller.getDepthIndent (row.depth - 1 ) -
1299
- distanceFromExpandCollapseToRowStart ;
1294
+ distanceFromIconCenterToRowStart ;
1300
1295
final width =
1301
1296
showExpandCollapse
1302
- ? inspectorColumnIndent * 0.6
1303
- : inspectorColumnIndent;
1297
+ ? inspectorColumnIndent * 0.45
1298
+ : inspectorColumnIndent * . 6 ;
1304
1299
canvas.drawLine (
1305
1300
Offset (parentExpandCollapseX, 0.0 ),
1306
1301
Offset (parentExpandCollapseX, inspectorRowHeight * 0.5 ),
0 commit comments