我是Flutter新手,请勿因我的问题太简单而责备我。
通知图标没有显示如下:
我将其放在以下路径中:
\android\app\src\main\res\drawable
这是我的图标代码:
final settingsAndroid = AndroidInitializationSettings('app_icon');
final settingsIOS = IOSInitializationSettings(onDidReceiveLocalNotification: (id, title, body, payload) => onSelectNotification(payload));
final settingsIOSgeneral = IOSInitializationSettings(onDidReceiveLocalNotification: (id, title, body, payload) => onSelectNotificationgeneral(payload));
notifications.initialize(InitializationSettings(settingsAndroid, settingsIOS), onSelectNotification: onSelectNotification);
请问有谁可以帮我预览通知中的图标?