@@ -61,6 +61,9 @@ <h1><span class="kind-class">DirectoryTreeViewer</span> class
6161</ h1 > </ div >
6262
6363
64+ < section class ="desc markdown ">
65+ < p > A widget to display a directory tree structure with foldable directories and customizable file/folder icons and text styles.</ p >
66+ </ section >
6467
6568
6669 < section >
@@ -97,7 +100,7 @@ <h2>Constructors</h2>
97100 < span class ="name "> < a href ="../file_tree_view/DirectoryTreeViewer/DirectoryTreeViewer.html "> DirectoryTreeViewer</ a > </ span > < span class ="signature "> ({< span class ="parameter " id ="-param-key "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/foundation/Key-class.html "> Key</ a > ?</ span > < span class ="parameter-name "> key</ span > , </ span > < span class ="parameter " id ="-param-rootPath "> < span > required</ span > < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/dart-core/String-class.html "> String</ a > </ span > < span class ="parameter-name "> rootPath</ span > , </ span > < span class ="parameter " id ="-param-onFileTap "> < span class ="type-annotation "> void</ span > < span class ="parameter-name "> onFileTap</ span > (< span class ="parameter " id ="param- "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/dart-io/File-class.html "> File</ a > </ span > </ span > )?, </ span > < span class ="parameter " id ="-param-folderClosedicon "> < span class ="type-annotation "> dynamic</ span > < span class ="parameter-name "> folderClosedicon</ span > = < span class ="default-value "> const Icon(Icons.folder)</ span > , </ span > < span class ="parameter " id ="-param-folderOpenedicon "> < span class ="type-annotation "> dynamic</ span > < span class ="parameter-name "> folderOpenedicon</ span > = < span class ="default-value "> const Icon(Icons.folder_open)</ span > , </ span > < span class ="parameter " id ="-param-fileIcon "> < span class ="type-annotation "> dynamic</ span > < span class ="parameter-name "> fileIcon</ span > = < span class ="default-value "> const Icon(Icons.insert_drive_file)</ span > , </ span > < span class ="parameter " id ="-param-folderNameStyle "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/painting/TextStyle-class.html "> TextStyle</ a > </ span > < span class ="parameter-name "> folderNameStyle</ span > = < span class ="default-value "> const TextStyle()</ span > , </ span > < span class ="parameter " id ="-param-fileNameStyle "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/painting/TextStyle-class.html "> TextStyle</ a > </ span > < span class ="parameter-name "> fileNameStyle</ span > = < span class ="default-value "> const TextStyle()</ span > , </ span > < span class ="parameter " id ="-param-fileIconBuilder "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/widgets/Widget-class.html "> Widget</ a > </ span > < span class ="parameter-name "> fileIconBuilder</ span > (< span class ="parameter " id ="param-fileExtension "> < span class ="type-annotation "> < a href ="https://api.flutter.dev/flutter/dart-core/String-class.html "> String</ a > </ span > < span class ="parameter-name "> fileExtension</ span > </ span > )?</ span > })</ span >
98101 </ dt >
99102 < dd >
100-
103+ Constructs a < a href =" ../file_tree_view/DirectoryTreeViewer-class.html " > DirectoryTreeViewer </ a > with the given properties.
101104 < div class ="constructor-modifier features "> const</ div >
102105 </ dd >
103106 </ dl >
@@ -115,7 +118,7 @@ <h2>Properties</h2>
115118
116119</ dt >
117120< dd >
118-
121+ The icon for files. Default is a generic file icon.
119122 < div class ="features "> < span class ="feature "> final</ span > </ div >
120123
121124</ dd >
@@ -127,7 +130,7 @@ <h2>Properties</h2>
127130
128131</ dt >
129132< dd >
130-
133+ A function that returns a custom file icon based on the file extension.
131134 < div class ="features "> < span class ="feature "> final</ span > </ div >
132135
133136</ dd >
@@ -139,7 +142,7 @@ <h2>Properties</h2>
139142
140143</ dt >
141144< dd >
142-
145+ The text style for file names. Default is an empty < a href =" https://api.flutter.dev/flutter/painting/TextStyle-class.html " > TextStyle </ a > .
143146 < div class ="features "> < span class ="feature "> final</ span > </ div >
144147
145148</ dd >
@@ -151,7 +154,7 @@ <h2>Properties</h2>
151154
152155</ dt >
153156< dd >
154-
157+ The icon for closed folders. Default is a folder icon.
155158 < div class ="features "> < span class ="feature "> final</ span > </ div >
156159
157160</ dd >
@@ -163,7 +166,7 @@ <h2>Properties</h2>
163166
164167</ dt >
165168< dd >
166-
169+ The text style for folder names. Default is an empty < a href =" https://api.flutter.dev/flutter/painting/TextStyle-class.html " > TextStyle </ a > .
167170 < div class ="features "> < span class ="feature "> final</ span > </ div >
168171
169172</ dd >
@@ -175,7 +178,7 @@ <h2>Properties</h2>
175178
176179</ dt >
177180< dd >
178-
181+ The icon for opened folders. Default is a folder opened icon.
179182 < div class ="features "> < span class ="feature "> final</ span > </ div >
180183
181184</ dd >
@@ -211,7 +214,7 @@ <h2>Properties</h2>
211214
212215</ dt >
213216< dd >
214-
217+ Callback function when a file is tapped. Accepts a < a href =" https://api.flutter.dev/flutter/dart-io/File-class.html " > File </ a > as parameter.
215218 < div class ="features "> < span class ="feature "> final</ span > </ div >
216219
217220</ dd >
@@ -223,7 +226,7 @@ <h2>Properties</h2>
223226
224227</ dt >
225228< dd >
226-
229+ The root path of the directory to display.
227230 < div class ="features "> < span class ="feature "> final</ span > </ div >
228231
229232</ dd >
0 commit comments