Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
1. Issue Description:
When adding a StickyNoteAnnotation on an iPhone, the icon appears extremely small. To make it usable, the icon size needs to be increased by approximately three times.
2. Cause of the Issue:
The root cause seems to be in the _getDefualtStickyNoteSize() function located in syncfusion_flutter_pdfviewer/lib/src/annotation/sticky_notes.dart. This function calculates an icon size that is too small when running on an iPhone.
3. Patch/Workaround Implemented:
We have implemented a temporary patch to address this issue. The patch involves modifying the _getDefualtStickyNoteSize() function to accept a scaling factor that can be passed from the parent application. When our application detects that it is running on an iPhone, it passes a scaling factor of 3.0 to this function, which results in an appropriately sized icon.
Suggested Solution (from our patch):
It would be beneficial if the syncfusion_flutter_pdfviewer package provided a way to customize the sticky note icon size, or if the default calculation could be adjusted to better accommodate various screen sizes and resolutions, especially on iOS devices. Perhaps a configurable scaling factor or a platform-aware sizing logic within the _getDefualtStickyNoteSize() function itself would be a good solution.
Contact Information: [email protected]