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 Option to Export Only Selected Notes #243

Open
SankethBK opened this issue Oct 11, 2024 · 2 comments
Open

Add Option to Export Only Selected Notes #243

SankethBK opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
enhancement New feature or improvement ready for development There is a clear solution which can be implemented

Comments

@SankethBK
Copy link
Owner

Currently, we have an option to export notes into text and PDF formats, but this functionality exports all notes. We need to add an option to export only the selected notes.

Implementation Steps:

  1. Selectable List Enhancement:

    • In the home page, when the user long taps on a note, we show a selectable list with a delete icon at the top.
    • We need to add an export icon here.
  2. Export Popup:

    • On clicking the export icon, a popup should open with two options:
      • 'Export to Plain Text'
      • 'Export to PDF'
  3. Passing Selected Notes:

    • On clicking one of the export options, we should pass all the selected notes to either exportNotesToTextFile or exportNotesToPDF, and return the output file.

Relevant Widgets:

  • lib/features/notes/data/repositories/export_notes_repository.dart
  • lib/features/notes/presentation/bloc/selectable_list/selectable_list_cubit.dart
  • lib/core/pages/home_page.dart

Additional Notes:

  • The SelectableListCubit is used to manage the list of selected notes and can be leveraged to access the notes selected by the user.
@SankethBK SankethBK added enhancement New feature or improvement ready for development There is a clear solution which can be implemented labels Oct 11, 2024
@hibaabdullahhamad
Copy link

Hello, can I be assigned to this issue I have experience in this feature.

@SankethBK
Copy link
Owner Author

Sure @hibaabdullahhamad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement ready for development There is a clear solution which can be implemented
Projects
None yet
Development

No branches or pull requests

2 participants