Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TaskStatus.open as status when creating a new task #764

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
6 changes: 5 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ class TasksTextField extends StatelessWidget {
if (message.trim().isEmpty) {
_textEditingController.clear();
} else {
final task = Task.optional(message: message, type: TaskType.task);
final task = Task.optional(
message: message,
type: TaskType.task,
status: TaskStatus.open,
);
await dao.insertTask(task);
_textEditingController.clear();
}
Expand Down