I am using the local notification package and I need to add buttons to notification. How to add these buttons to a notification.
Future<void> showDailyAtTime() async {
var time = Time(20, 3, 0);
var androidChannelSpecifics = AndroidNotificationDetails(
'CHANNEL_ID 4',
'CHANNEL_NAME 4',
"CHANNEL_DESCRIPTION 4",
importance: Importance.Max,
priority: Priority.High,
);
var iosChannelSpecifics = IOSNotificationDetails();
var platformChannelSpecifics =
NotificationDetails(androidChannelSpecifics, iosChannelSpecifics);
await flutterLocalNotificationsPlugin.showDailyAtTime(
0,
'Test Title at ${time.hour}:${time.minute}.${time.second}',
'Test Body', //null
time,
platformChannelSpecifics,
payload: 'Test Payload',
);
}
this is the function which iam using to show notification