Skip to content

Commit

Permalink
Merge pull request #229 from Photon3009/main
Browse files Browse the repository at this point in the history
Fix Date Validation Error in Form
  • Loading branch information
Pavel401 authored Dec 26, 2023
2 parents d854c5f + 2098f54 commit 3671651
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/widgets/add_Task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,13 @@ class _AddTaskBottomSheetState extends State<AddTaskBottomSheet> {
),
readOnly: true,
controller: TextEditingController(
text: (due != null) ? dueString : " Select due date",
text: (due != null) ? dueString : null,
),
decoration: InputDecoration(
hintText: 'Select due date',
hintStyle: TextStyle(
color: AppSettings.isDarkMode ? Colors.white : Colors.black,
),
errorText: (due == null) ? 'Due date is required' : null,
),
validator: (name) => name != null && name.isEmpty
? 'due date is required'
Expand Down

0 comments on commit 3671651

Please sign in to comment.