Closed DomingoMG closed 4 months ago
Interesting, thanks for reporting! Turns out, I was not supposed to rely on Uri's special character encoding, and just spit out the file name plain, even with special characters. I pushed the fix, so after doing flutter pub upgrade flutter_local_notifications
, you can just do:
NotificationDetails(
windows: WindowsNotificationDetails(
images: <WindowsImage>[
WindowsImage.file(
File(r"C:\Tommy Torres - Como Tú Decías.png"),
altText: 'A beautiful image',
),
],
),
),
On a related note, @Levi-Lesches are you able allow issues to be raised on your fork? Would issues specific to the fork to be raised there
Just did! Didn't realize they were disabled by default, but yes, any Windows-specific issues can go there
Thanks. Going to close this one as well. For any further issues to do with the fork, please post on the repository for the fork
Describe the bug When I try to display a local image from my PC as a notification, if the image name contains any special characters (such as accents), the image does not show up. On the other hand, images in Flutter load correctly with or without accents. However, in the notification, it seems there is no parser to handle these cases and manage special characters.
To Reproduce Set up a Flutter project with the flutter_local_notifications dependency in the specified version. Save an image in a local path that contains special characters in its name, for example, C:\Tommy Torres - Como Tú Decías.png. Attempt to display a notification using this image. Notice that the image does not appear in the notification.
Expected behavior The image should appear in the notification regardless of whether its name contains special characters.
Sample code to reproduce the problem
Flutter doctor output:
Pubspec.yaml:
I will attach an image to the post to help investigate the problem. Thank you. When downloading the photo please use this name to reproduce the error: Tommy Torres - Como Tu Decías.png