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 functionality to delete button #6

Closed
Shubhi-Paul opened this issue Oct 8, 2022 · 2 comments
Closed

Add functionality to delete button #6

Shubhi-Paul opened this issue Oct 8, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@Shubhi-Paul
Copy link
Collaborator

In the lib>view>screens>timer_screen.dart add functionality to the delete button.

The delete button on tap must delete the specific task data.

Add a function deleteTask (int index) in lib>providers>task_list_provider.dart to delete the taskData at that index from taskList .

you can get index from timer_screen

When the button is clicked -

  1. delete the task i.e call the function
  2. navigate back to home_screen.dart

comment below if any doubts.

@Shubhi-Paul Shubhi-Paul added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed hacktoberfest labels Oct 8, 2022
@Rohit-RA-2020
Copy link
Contributor

Can I work On this?

@Shubhi-Paul
Copy link
Collaborator Author

sure, go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants