File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export 'package:file_manager/helper/helper.dart';
1010
1111typedef _Builder = Widget Function (
1212 BuildContext context,
13- List <FileSystemEntity > entites ,
13+ List <FileSystemEntity > snapshot ,
1414);
1515
1616class _PathStat {
You can’t perform that action at this time.
0 commit comments