flutter / flutter/devtools

[Feature]: Add visual measuring tools, like Figma

Offen
#9,536 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
new feature P3 screen: inspector
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

Validating layouts is not a simple task, usually we need to open Figma, measure the distance between widgets there, and try to see if it matches in the app. Currently there are many hacky ways to do it:

1. Take a screenshot of the app, overlay it on Figma/Photohop, and use rulers to check alignment and sizes.
2.Take a screenshot of the app, overlay it on Figma/Photohop, and use opacity to blend the desired outcome with the screenshot, and see where they differ.
3. Take a screenshot of the app and use any tool that can count pixels to see if the values match what you want.

All of this takes time and it's cumbersome.

Currently we can see the size of a widget in the widget tree view, but that's it.

It would be really cool if the DevTools could introduce a tool like this:

Image

Image

Where we can use the mouse and keyboard to activate different kinds of measurements, from one widget to the next. I suggest you play around with Figma, pressing Alt/Option while you select and hover over components, to see how it helps to measure distances between widgets.

Obviously this will be more complicated in a real device, but for emulators it could be really useful.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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