admin管理员组文章数量:1295329
I tried to create two buttons (with icons) notification on my android 14 but still it not appears. I did
NotificationActionButton(
key:'REJECT',
label:'Reject',
autoDismissible: true,
enabled: true,
showInCompactView: true,
color: Colors.red,
icon: 'resource://drawable/reject_icon',
),
i added my icon icon on ~/android/app/src/main/res/drwable folder but nothing appears. I did tried using image asset on android studio to add my custom icon (i put icon type as notifications icon) also tried to add clip art icon but nothing appears. also tried vector asset and the same thing nothing appears. also tried nothing appears icon: '@drawable/reject_icon' but no icon appears.
NOTE: i did change my android notification icon using this method and it change successfully, so the path is correct!
await AwesomeNotifications().initialize(
// null,
'resource://drawable/app_icon',
)
本文标签: androidbutton Icon doesn39t appears on awesomenotificationsStack Overflow
版权声明:本文标题:android - button Icon doesn't appears on awesome_notifications - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741615469a2388500.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论