FolderListing: Show the number of notes per folder

This commit is contained in:
Vishesh Handa
2019-12-05 17:48:31 +01:00
parent 199e298903
commit f08d72bb00
2 changed files with 10 additions and 0 deletions

View File

@ -70,11 +70,13 @@ class FolderTileState extends State<FolderTile> {
if (folder.parent == null) {
folderName = "Notes";
}
var subtitle = folder.numberOfNotes.toString() + " Notes";
return Card(
child: ListTile(
leading: Icon(Icons.folder),
title: Text(folderName),
subtitle: Text(subtitle),
trailing: trailling,
),
);