dart-lang / dart-pad

An online Dart editor with support for console, web, and Flutter apps
https://dartpad.dev
BSD 3-Clause "New" or "Revised" License
1.7k stars 550 forks source link

refactor dartdoc panel location and behavior #2999

Closed devoncarew closed 3 weeks ago

devoncarew commented 2 months ago

From user feedback, the current behavior of the dartdoc panel can interfere with editing the snippet:

Here are some possible refactorings of the UI:

have the dartdoc panel appear in a fixed location, floating over the editing area

have the dartdoc panel only show when double clicking a symbol

have a 'toggle doc' button on the bottom status bar

johnpryan commented 2 months ago

Giving more control to the user is probably a good guiding principle here, so I'm leaning toward option 3 We could also try to see if option 1 is an improvement, but that could be done separately. Option 2 seems a little hard for the average person to intuit, but maybe we could make alt-clicking on a symbol enable the panel.