Future<void> _showWeeklyAtDayAndTime() async {
var time = Time(10, 0, 0);
var androidPlatformChannelSpecifics = AndroidNotificationDetails(
'id',
'name',
'description');
var iOSPlatformChannelSpecifics = IOSNotificationDetails();
var platformChannelSpecifics = NotificationDetails(
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
await flutterLocalNotificationsPlugin.showWeeklyAtDayAndTime(
0,
'show weekly title',
'Weekly notification',
Day.values[0],
time,
platformChannelSpecifics);
}
我想每周都收到通知,而不仅仅是一个工作日(星期日),我想选择一个以上的工作日,例如(星期日,星期二,星期四,星期五),我找不到任何可实施的解决方案。