Skip to content

Commit eff435a

Browse files
Parentheisis problem
1 parent b430928 commit eff435a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

lib/widgets/addTask.dart

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,20 @@ class _AddTaskBottomSheetState extends State<AddTaskBottomSheet> {
196196
.rebuild((b) => b..due = due)
197197
.rebuild((p) => p..priority = priority);
198198

199-
StorageWidget.of(context).mergeTask(task);
200-
//StorageWidget.of(context).mergeTask(prioritytask);
201-
namecontroller.text = '';
202-
due = null;
203-
priority = 'M';
204-
setState(() {});
205-
Navigator.of(context).pop();
206-
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
207-
content: const Text('Task Added Successfully'),
208-
backgroundColor: AppSettings.isDarkMode
209-
? const Color.fromARGB(255, 61, 61, 61)
210-
: const Color.fromARGB(255, 39, 39, 39),
211-
duration: const Duration(seconds: 2)));
199+
StorageWidget.of(context).mergeTask(task);
200+
//StorageWidget.of(context).mergeTask(prioritytask);
201+
namecontroller.text = '';
202+
due = null;
203+
priority = 'M';
204+
setState(() {});
205+
Navigator.of(context).pop();
206+
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
207+
content: const Text('Task Added Successfully'),
208+
backgroundColor: AppSettings.isDarkMode
209+
? const Color.fromARGB(255, 61, 61, 61)
210+
: const Color.fromARGB(255, 39, 39, 39),
211+
duration: const Duration(seconds: 2)));
212+
}
212213
} on FormatException catch (e) {
213214
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
214215
content: const Text('Task Addition Failed'),

0 commit comments

Comments
 (0)