How to show more than one line in a notification message (flutter_local_notifications package)

Viewed 1685

I have a problem that only the first line in the notification body appears, how can I make the notification expanded with large content?

This is the code, using the flutter_local_notifications package:

void showNotification(int id, String title, String content, DateTime time) async {
  final AndroidNotificationDetails android = AndroidNotificationDetails(
      'ch_ID', 'Ch_Name', 'ch_Description', 
      priority: Priority.High, importance: Importance.Max);
  final IOSNotificationDetails ios = IOSNotificationDetails();
  final NotificationDetails platform = NotificationDetails(android, ios);

  await flutterLocalNotificationsPlugin.schedule(
      id,
      '$title',
      '$content',
      time,
      platform,
      payload: 'payload'
  );
}

notification with cut text

0 Answers
Related