Add ability to download country profile as PDF#6
Add ability to download country profile as PDF#6sweep-ai-deprecated[bot] wants to merge 6 commits into
Conversation
PR Summary
|
|
Sweep: that's wrong, you didn't implement the PdfService class. |
|
Sweep: you haven't implemented the pdf service, I need it implemented use the returned pdf file in another method called printPDF() that will open up the System print UI to print this document Use the pdf package to generate the pdf |
…he `pdf` package
Description
This PR adds the ability to download a country profile as a PDF in the country_details_page.dart file. It introduces a new PDF service (pdf_service.dart) that handles the PDF generation and integrates it with the existing code. The service is registered in the services_locator.dart file for dependency injection. The country_details_page.dart file is modified to include a button that triggers the PDF generation when clicked. The button calls the PDF service with the necessary data. Additionally, tests are added to ensure the new feature works as expected.
Summary of Changes
Fixes #5.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.