Skip to content

Commit 932df72

Browse files
committed
entities renamed to snapshot
1 parent 1f59356 commit 932df72

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

example/lib/main.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ class HomePage extends StatelessWidget {
4747
margin: EdgeInsets.all(10),
4848
child: FileManager(
4949
controller: controller,
50-
builder: (context, entites) {
50+
builder: (context, snapshot) {
5151
return ListView.builder(
52-
itemCount: entites.length,
52+
itemCount: snapshot.length,
5353
itemBuilder: (context, index) {
5454
return Card(
5555
child: ListTile(
56-
leading: isFile(entites[index])
56+
leading: isFile(snapshot[index])
5757
? Icon(Icons.feed_outlined)
5858
: Icon(Icons.folder),
59-
title: Text(basename(entites[index])),
59+
title: Text(basename(snapshot[index])),
6060
onTap: () {
61-
if (isDirectory(entites[index]))
62-
controller.openDirectory(entites[index]);
61+
if (isDirectory(snapshot[index]))
62+
controller.openDirectory(snapshot[index]);
6363
},
6464
),
6565
);

lib/file_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export 'package:file_manager/helper/helper.dart';
1010

1111
typedef _Builder = Widget Function(
1212
BuildContext context,
13-
List<FileSystemEntity> entites,
13+
List<FileSystemEntity> snapshot,
1414
);
1515

1616
class _PathStat {

0 commit comments

Comments
 (0)