Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS上的本地通知附件是否可以使用Flatter资源_Ios_Flutter_Flutter Local Notification - Fatal编程技术网

iOS上的本地通知附件是否可以使用Flatter资源

iOS上的本地通知附件是否可以使用Flatter资源,ios,flutter,flutter-local-notification,Ios,Flutter,Flutter Local Notification,我正在使用flatter_local_notifications包在我的flatter应用程序中显示通知。我想通过将图像添加到IONotificationDetails中的“attachments”数组,在iOS上显示带有通知的图像 final iosNotificationDetails = IOSNotificationDetails( attachments: [IOSNotificationAttachment('assets/image.png')], ); 我已经看到了从U

我正在使用flatter_local_notifications包在我的flatter应用程序中显示通知。我想通过将图像添加到IONotificationDetails中的“attachments”数组,在iOS上显示带有通知的图像

final iosNotificationDetails = IOSNotificationDetails(
    attachments: [IOSNotificationAttachment('assets/image.png')],
);
我已经看到了从URL下载图像并将其保存在application documents目录中的示例,但我想知道是否有方法直接从Flatter资产或从iOS项目中的文件加载图像