mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +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) {
|
Widget _buildNoteCard(BuildContext context, Note note) {
|
||||||
var body = note.body.trimRight();
|
var body = note.body.trimRight();
|
||||||
|
|
||||||
|
body = body.replaceAll('[ ]', '☐');
|
||||||
|
body = body.replaceAll('[x]', '☑');
|
||||||
|
body = body.replaceAll('[X]', '☑');
|
||||||
|
|
||||||
var textTheme = Theme.of(context).textTheme;
|
var textTheme = Theme.of(context).textTheme;
|
||||||
var tileContent = Padding(
|
var tileContent = Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
Reference in New Issue
Block a user