flutter / flutter/devtools

Layout Explorer should maintain aspect ratio

Offen
#3,466 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
layout explorer P2
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduce the issue with a new app from the "skeleton" template, then open the widget inspector and Layout Explorer for a ListTile and CircleAvatar. Trace the Layout Explorer rendering from that entry point; done means displayed children preserve their real aspect ratios within the available screen space.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.