flutter / flutter/devtools

Layout Explorer should maintain aspect ratio

Ouverte
#3,466 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
layout explorer P2
Langage dominant
Dart
Étoiles
1.7k
Forks
404
Merge moyen
6 j 17 h
PR mergées (30 j)
18

Description

STEPS TO REPRODUCE
1. Create a new app using the "skeleton" template.
2. Run it.
3. In the widget inspector, click on one of the ListTiles.

EXPECTED RESULTS
I would have expected to see a horizontal rectangle, with the aspect ratio of the list tile.

ACTUAL RESULTS
The visualization is sized to fit the screen, so even though it is labeled as "h=56" and "w=411.4", the box is actually taller than it is wide.

This gets worse e.g. when you tap the CircleAvatar widget, which is square (actually circular) in the real rendering, but appears like a vertical box in the widget inspector.

I think that, within reason, the aspect ratio of the child being displayed in the widget inspector should match the real aspect ratio. That would help orient the developer.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.