Flutter Windows Print Frontend — Example App
This is a sample Flutter application demonstrating how to use flutter_windows_print_frontend to show a Chrome-like print preview dialog on Windows.
The example generates a multi-page PDF, converts each page to PNG, and then opens a customizable print dialog that displays live page previews.
✨ Features Demonstrated
• Generate a PDF using the pdf package
• Rasterize PDF pages into PNG using printing
• Display a Windows-style print preview dialog
• Show pages, title, and print settings
• Trigger print jobs using your backend printing plugin
Opening the print dialog via:
example: await showPrintDialog( context: context, pages: pages, documentTitle: 'Print Preview Document', );
📦 Dependencies dependencies: flutter: sdk: flutter flutter_window_print: 1.0.1
Contributing
Contributions are welcome! Feel free to fork the repository, make changes, and open pull requests. If you find any issues or have suggestions for improvements, please open an issue.
License
This package is licensed under the MIT License. See LICENSE for more information.