How to create a sequence diagram or class diagram for dart code?

2,476 views
Skip to first unread message

Entaro Adun

unread,
Nov 13, 2012, 5:19:26 AM11/13/12
to mi...@dartlang.org
There has been a question on stackoverflow about sequence and class diagrams for dart code.
Is there a way to create a sequence diagram or class diagram for dart code? Or any other useful way to visualize the structure (or a vague programmflow) of a dart application.


If you are interested, star it.

Since dart will be used to create "structured" web applications, an editor tool to create sequence diagrams and class diagrams is needed.
There should be a way to visualize the structure and sequence of called operations of a dart application.

A really awesome sequence diagram would be, if you could specify a starting point and an end point in your code. Between those two points, every executed operation (e.g. called method, callbacks and asynchrounous stuff) should be tracked and displayed. Every user input should have effect on the seq. diagram.

It would be so much easier to work in teams and communicate other developers your code/application.


Seth Ladd

unread,
Nov 13, 2012, 8:33:24 AM11/13/12
to General Dart Discussion
Hi Entaro,

Thanks for the question! I'm not aware of any tools that do this, but I'm curious if our Eclipse plugin for Dart would help. There are lots of interesting visualization and UML type plugins for Eclipse, I wonder if our plugin for Dart exposes code in a generic way that would interface with other UML plugins.

Keep us posted, and thanks for linking to the feature request,
Seth


--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
 
 

Gero Nimo

unread,
Nov 14, 2012, 4:02:41 PM11/14/12
to mi...@dartlang.org
This has to be a "must have feature" for a structured new language.

John Evans

unread,
Nov 14, 2012, 4:47:14 PM11/14/12
to mi...@dartlang.org
Entaro, 

Open a feature request here: www.dartbug.com/new

Entaro Adun

unread,
Nov 14, 2012, 5:45:14 PM11/14/12
to mi...@dartlang.org

Entaro Adun

unread,
Nov 20, 2012, 6:15:49 PM11/20/12
to mi...@dartlang.org
I just had the chance to create a class diagram and a sequence diagram (in an another language) and this is just awesome. Working in a team and communicating the programmflow is so much easier.

Dart must have some kind of tool to accomplish those things!!

Pat Kujawa

unread,
Feb 16, 2018, 6:48:53 PM2/16/18
to Dart Misc
Does anyone have any updates to share on this topic? The Eclipse plugin is no longer supported. I'm an IntelliJ (Pycharm, Webstorm, IDEA, Goland, etc) user, but I'm not aware of a way to generate and *save* diagrams from there.

David Liedle

unread,
Feb 19, 2018, 5:25:38 PM2/19/18
to Dart Misc
PlantUML may be what you're looking for in the IntelliJ/IDE world (among others): http://plantuml.com/download

I had issues running it myself at a meetup recently, but I've seen it done.

I'm more interested in https://mermaidjs.github.io/, personally. Depending on my IDE to do generation makes me very sad. Wiring it up as part of a build system feels right.

This doesn't mean it will "read" the source Dart code, but it's the second half of the puzzle: generate and *save* diagrams. :)

Cheers,

David

Pat Kujawa

unread,
Feb 21, 2018, 3:13:25 PM2/21/18
to mi...@dartlang.org
I'm specifically looking for something to generate the diagram from source, not for manual creation. Mermaid looks handy; similar to seqdiag - simple sequence-diagram image generator — blockdiag 1.0 documentation and PlantUML, both of which I've used for manual creation.

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to a topic in the Google Groups "Dart Misc" group.
To unsubscribe from this topic, visit https://groups.google.com/a/dartlang.org/d/topic/misc/VFrvYr-CB2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to misc+uns...@dartlang.org.



--
Pat Kujawa
Senior Software Engineer

Workiva Inc.
Missoula, MT

George Lesica

unread,
Apr 7, 2019, 7:58:48 AM4/7/19
to Dart Misc
In case anyone is still interested, Pat and I wrote a tool to do this. It can be found here: https://pub.dartlang.org/packages/dcdg

George


On Wednesday, February 21, 2018 at 1:13:25 PM UTC-7, Pat Kujawa wrote:
I'm specifically looking for something to generate the diagram from source, not for manual creation. Mermaid looks handy; similar to seqdiag - simple sequence-diagram image generator — blockdiag 1.0 documentation and PlantUML, both of which I've used for manual creation.
On Mon, Feb 19, 2018 at 2:44 PM, David Liedle <david...@gmail.com> wrote:
PlantUML may be what you're looking for in the IntelliJ/IDE world (among others): http://plantuml.com/download

I had issues running it myself at a meetup recently, but I've seen it done.

I'm more interested in https://mermaidjs.github.io/, personally. Depending on my IDE to do generation makes me very sad. Wiring it up as part of a build system feels right.

This doesn't mean it will "read" the source Dart code, but it's the second half of the puzzle: generate and *save* diagrams. :)

Cheers,

David


On Friday, February 16, 2018 at 6:48:53 PM UTC-5, Pat Kujawa wrote:
Does anyone have any updates to share on this topic? The Eclipse plugin is no longer supported. I'm an IntelliJ (Pycharm, Webstorm, IDEA, Goland, etc) user, but I'm not aware of a way to generate and *save* diagrams from there.

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to a topic in the Google Groups "Dart Misc" group.
To unsubscribe from this topic, visit https://groups.google.com/a/dartlang.org/d/topic/misc/VFrvYr-CB2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mi...@dartlang.org.
Reply all
Reply to author
Forward
0 new messages