Read ODC documentation
Build first screen
Business requirement
A learner needs a small task list. They should be able to enter a task, add it to the list, view all current tasks, and remove a task they no longer need.
- Create a Task structure containing a Text attribute and a local variable that is a List of Task.
- Provide a text input and an Add Task button.
- On click, validate that the input is not empty, append the new task to the list, and clear the input.
- Display the list below the form using a List widget.
- Place a Remove button on every row and remove only the selected task.
- Show “No tasks added yet” when the list is empty.