flutter / flutter/devtools

Layout Explorer not displaying accurate height of Widget in visualizer

Abierto
#2,175 3 comentarios 0 reacciones 0 asignados Ver en GitHub
bug cost: low layout explorer P2 screen: inspector
Lenguaje dominante
Dart
Estrellas
1.7k
Forks
404
Merge medio
6 d 17 h
PR fusionados (30 d)
18

Descripción

## 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.
Screen Shot 2020-06-19 at 8 12 04 PM

Logs

```
```

```
```

```
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart
Área
devtools
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.