diff --git a/lib/widgets/journal_list.dart b/lib/widgets/journal_list.dart index a22c1fbc..e22c1f6c 100644 --- a/lib/widgets/journal_list.dart +++ b/lib/widgets/journal_list.dart @@ -195,60 +195,4 @@ class _JournalListState extends State { ], ); } - - /* - Widget _buildJournalRow(BuildContext context, Note journal, int noteIndex) { - var title = ""; - var time = ""; - - if (journal.hasValidDate()) { - var formatter = DateFormat('dd MMM, yyyy - EE'); - title = formatter.format(journal.created); - - var timeFormatter = DateFormat('Hm'); - time = timeFormatter.format(journal.created); - } else { - title = basename(journal.filePath); - } - - var body = stripMarkdownFormatting(journal.body); - - var textTheme = Theme.of(context).textTheme; - var children = []; - if (time.isNotEmpty) { - children.addAll([ - const SizedBox(height: 4.0), - Text(time, style: textTheme.body1), - ]); - } - - children.addAll([ - const SizedBox(height: 4.0), - Text( - body, - maxLines: 3, - overflow: TextOverflow.ellipsis, - style: textTheme.body1, - ), - ]); - - var tile = ListTile( - isThreeLine: true, - title: Text( - title, - style: const TextStyle(fontSize: 18, fontWeight: FontWeight.w500), - ), - subtitle: Column( - children: children, - crossAxisAlignment: CrossAxisAlignment.start, - ), - onTap: () => noteSelectedFunction(noteIndex), - ); - - return Padding( - padding: const EdgeInsets.only(top: 8.0, bottom: 8.0), - child: tile, - ); - } - */ }