Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use dartdoc to generate the documentation for flutter like docs.flutter.io?

Tags:

flutter

dart

I found the command of dartdoc, when I run it, I get the api documantation for Dart. How can I generate the documantation for flutter just like docs.flutter.io?

like image 927
Creatint Avatar asked May 12 '18 09:05

Creatint


People also ask

How do you write comments in darts?

Dart Single line Comment: Dart single line comment is used to comment a line until line break occurs. It is done using a double forward-slash (//). // This is a single line comment.


1 Answers

run

pub global activate dartdoc
dartdoc

See also https://pub.dartlang.org/packages/dartdoc

By default docs are only generate for the public API in lib/. Code in lib/src/ is considered private if not exported from files in lib/

like image 118
Günter Zöchbauer Avatar answered Oct 15 '22 17:10

Günter Zöchbauer