From 1e9b7bdf94aa7211a76059d223dc5961bb9927ec Mon Sep 17 00:00:00 2001 From: Paul Nettleton Date: Wed, 7 Sep 2022 13:14:33 -0500 Subject: [PATCH] add quotes around user facing item titles --- lib/components/BucketLimitDialog.dart | 2 +- lib/components/SliverBucketList.dart | 2 +- lib/pages/list/list.dart | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/components/BucketLimitDialog.dart b/lib/components/BucketLimitDialog.dart index 5578a93..d4fb7f9 100644 --- a/lib/components/BucketLimitDialog.dart +++ b/lib/components/BucketLimitDialog.dart @@ -18,7 +18,7 @@ class _BucketLimitDialogState extends State { Widget build(BuildContext context) { if (_controller.text.isEmpty) _controller.text = '${widget.bucket.limit}'; return AlertDialog( - title: Text('Limit for ${widget.bucket.title}'), + title: Text('Limit for \'${widget.bucket.title}\''), content: Column( mainAxisSize: MainAxisSize.min, children: [ diff --git a/lib/components/SliverBucketList.dart b/lib/components/SliverBucketList.dart index 6edd6ab..b6cf39d 100644 --- a/lib/components/SliverBucketList.dart +++ b/lib/components/SliverBucketList.dart @@ -41,7 +41,7 @@ class SliverBucketList extends StatelessWidget { ); ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text('${task.title} was moved to ${bucket.title} successfully!'), + content: Text('\'${task.title}\' was moved to \'${bucket.title}\' successfully!'), )); } } diff --git a/lib/pages/list/list.dart b/lib/pages/list/list.dart index 35889b0..2dbc894 100644 --- a/lib/pages/list/list.dart +++ b/lib/pages/list/list.dart @@ -541,7 +541,7 @@ class _ListPageState extends State { newBucketId: bucket.id, index: 0, ).then((_) => ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text('${data.task.title} was moved to ${bucket.title} successfully!'), + content: Text('\'${data.task.title}\' was moved to \'${bucket.title}\' successfully!'), ))); setState(() => _bucketProps[bucket.id]!.taskDropSize = null); }, @@ -626,7 +626,7 @@ class _ListPageState extends State { builder: (_) => AddDialog( onAdd: (title) => _addItem(title, context, bucket), decoration: InputDecoration( - labelText: (bucket != null ? '${bucket.title}: ' : '') + 'New Task Name', + labelText: (bucket != null ? '\'${bucket.title}\': ' : '') + 'New Task Name', hintText: 'eg. Milk', ), ), @@ -655,7 +655,7 @@ class _ListPageState extends State { ) .then((_) { ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text('The task was added successfully' + (bucket != null ? ' to ${bucket.title}' : '') + '!'), + content: Text('The task was added successfully' + (bucket != null ? ' to \'${bucket.title}\'' : '') + '!'), )); setState(() { _loadingTasks.remove(newTask); @@ -706,7 +706,7 @@ class _ListPageState extends State { bucket: bucket, ).then((_) { ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text('${bucket.title} bucket updated successfully!'), + content: Text('\'${bucket.title}\' bucket updated successfully!'), )); setState(() {}); }); @@ -722,7 +722,7 @@ class _ListPageState extends State { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Row( children: [ - Text('${bucket.title} was deleted.'), + Text('\'${bucket.title}\' was deleted.'), Icon(Icons.delete), ], ),