Layout Explorer not displaying accurate height of Widget in visualizer
- 主要言語
- Dart
- スター
- 1.7k
- フォーク
- 404
- 平均マージ
- 6日 17時間
- マージ済み PR(30日)
- 18
説明
## Steps to Reproduce
1. Replace the contents of main.dart with the following code:
```
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
appBar: AppBar(
title: Text('Demo'),
),
body: Column(children: [
Row(
children: [
Text('hello'),
VerticalDivider(
thickness: 5.0,
),
Text('Word'),
],
),
]),
),
);
}
}
```
2. Run the program using debug mode.
3. Open DevTools
4. Select Row widget in the Flutter Inspector.
5. Open Layout Explorer.
6. Change Cross Axis to Stretch mode.
**Expected results:**
Nothing shows on Layout Explorer screen since adding CrossAxisAlginment.Stretch to the Row widget will create an error.
**Actual results:**
VerticalDivider increases in height in the Layout Explorer visualizer, but the actual height remains 0.

Logs
```
```
```
```
```
```
コントリビューションガイド
調査の方向性
Reproduce the issue with the supplied main.dart example, then inspect the DevTools Layout Explorer visualizer while selecting the Row and switching Cross Axis to Stretch. Compare the displayed VerticalDivider height with its actual height; done means the visualizer reports the widget's accurate height without introducing the described error.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100