Skip to content

Commit d3400b0

Browse files
committed
Updated Document
1 parent 6226efd commit d3400b0

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ FileManager(
8181
itemBuilder: (context, index) {
8282
return Card(
8383
child: ListTile(
84-
leading: isFile(entities[index])
84+
leading: FileManager.isFile(entities[index])
8585
? Icon(Icons.feed_outlined)
8686
: Icon(Icons.folder),
87-
title: Text(basename(entities[index])),
87+
title: Text(FileManager.basename(entities[index])),
8888
onTap: () {
89-
if (isDirectory(entities[index])) {
89+
if (FileManager.isDirectory(entities[index])) {
9090
controller.openDirectory(entities[index]); // open directory
9191
} else {
9292
// Perform file-related tasks.
@@ -139,12 +139,14 @@ FileManager(
139139
| `createFolder` | Creates the directory if it doesn't exist. Requires currentPath and Name of the Directory. |
140140

141141
</hr>
142+
<p>
142143

143144
<img width="205px" height ="444px" alt="Example" src="https://imgur.com/RXwvwB9.gif"/>
144145
<img width="205px" height ="444px" alt="Example" src="https://imgur.com/a56XQv7.png"/>
145146
<img width="205px" height ="444px" alt="Example" src="https://imgur.com/q4Ouf3M.png"/>
146147
<img width="205px" height ="444px" alt="Example" src="https://imgur.com/CwB5wb0.png"/>
147148

149+
</p>
148150
</hr>
149151

150152
## Show some :heart: and :star: the repo

lib/file_manager.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ Future<List<FileSystemEntity>> _sortEntitysList(
110110
/// itemBuilder: (context, index) {
111111
/// return Card(
112112
/// child: ListTile(
113-
/// leading: isFile(entitis[index])
113+
/// leading: FileManager.isFile(entitis[index])
114114
/// ? Icon(Icons.feed_outlined)
115115
/// : Icon(Icons.folder),
116-
/// title: Text(basename(entitis[index])),
116+
/// title: Text(FileManager.basename(entitis[index])),
117117
/// onTap: () {
118-
/// if (isDirectory(entitis[index])) {
118+
/// if (FileManager.isDirectory(entitis[index])) {
119119
/// controller
120120
/// .openDirectory(entitis[index]);
121121
/// } else {
@@ -150,12 +150,12 @@ class FileManager extends StatefulWidget {
150150
/// itemBuilder: (context, index) {
151151
/// return Card(
152152
/// child: ListTile(
153-
/// leading: isFile(snapshot[index])
153+
/// leading: FileManager.isFile(snapshot[index])
154154
/// ? Icon(Icons.feed_outlined)
155155
/// : Icon(Icons.folder),
156-
/// title: Text(basename(snapshot[index])),
156+
/// title: Text(FileManager.basename(snapshot[index])),
157157
/// onTap: () {
158-
/// if (isDirectory(snapshot[index]))
158+
/// if (FileManager.isDirectory(snapshot[index]))
159159
/// controller.openDirectory(snapshot[index]);
160160
/// },
161161
/// ),

0 commit comments

Comments
 (0)