【发布时间】:2022-11-09 05:30:53
【问题描述】:
如何在 AndroidNotificationOptions 中添加名为“断开连接”的按钮?
我的简单代码在这里。
const AndroidNotificationOptions(
channelId: 'parameter_channel',
channelName: 'Parameters',
channelDescription: 'This notification appears when the reading begaz params running.',
channelImportance: NotificationChannelImportance.LOW,
priority: NotificationPriority.LOW,
visibility: NotificationVisibility.VISIBILITY_PRIVATE,
playSound: false,
enableVibration: false,
iconData: NotificationIconData(
resType: ResourceType.mipmap,
resPrefix: ResourcePrefix.ic,
name: 'launcher',
),
),
在这里我使用flutter_foreground_task。
【问题讨论】:
标签: flutter flutter-dependencies