mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-13 23:04:12 +08:00
Remove unused code
This commit is contained in:
@ -195,60 +195,4 @@ class _JournalListState extends State<JournalList> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
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 = <Widget>[];
|
|
||||||
if (time.isNotEmpty) {
|
|
||||||
children.addAll(<Widget>[
|
|
||||||
const SizedBox(height: 4.0),
|
|
||||||
Text(time, style: textTheme.body1),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
children.addAll(<Widget>[
|
|
||||||
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,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user