mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
CardView: Render checklists better
This commit is contained in:
@ -54,6 +54,10 @@ class CardView extends StatelessWidget {
|
||||
Widget _buildNoteCard(BuildContext context, Note note) {
|
||||
var body = note.body.trimRight();
|
||||
|
||||
body = body.replaceAll('[ ]', '☐');
|
||||
body = body.replaceAll('[x]', '☑');
|
||||
body = body.replaceAll('[X]', '☑');
|
||||
|
||||
var textTheme = Theme.of(context).textTheme;
|
||||
var tileContent = Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
|
Reference in New Issue
Block a user