Skip to content

Commit

Permalink
Merge pull request #22 from Hardik0307/mahendra_controller
Browse files Browse the repository at this point in the history
Mahendra controller
  • Loading branch information
HarshadChovatiya committed Mar 8, 2020
2 parents 44d569d + abc38c3 commit bb95810
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions lib/displays/duplicate_display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ class _DuplicateFileDisplayScreenState extends State<DuplicateFileDisplayScreen>
return true;
else
return false;
//return ret;

}

List<ListView> la;

var d = new List<MyFile>();

Future convertToLists(List<MyFile> ls) async {

var d = new List<MyFile>();
Future<MyFile> m;
for (int k = 0; k < ls.length; k++) {
if (ls[k] is MyFile && mime(ls[k].path) != null) {
Expand Down Expand Up @@ -105,34 +105,33 @@ var d = new List<MyFile>();
if ((x == y) &&
(x1 == y1) &&
calculateMD5SumAsyncWithPlugin(
ls[k].path, ls[i].path)) // == snapshot.data[i].name)
ls[k].path, ls[i].path)) //)
{
setState(() {


list.add(ls[i]);
list2.add(ls[i].name);
d.add(ls[i]);

ls.removeAt(i);
});

}
}

if (list.length >= 2) {
setState(() {

d.add(list[0]);
});

}
}
}
// m= Future.forEach(d, (i)=>i);
//print(m);

return d;
}

void initState() {
_scrollController = ScrollController(keepScrollOffset: true);
//convertToLists();

super.initState();
}

Expand Down

0 comments on commit bb95810

Please sign in to comment.