我正在使用 flutter_local_notifications 包进行推送通知。但在通知托盘中,我想显示完整的消息,无论需要多少行。这是我写的代码
void showNotification(message) async {
var androidPlatformChannelSpecifics = new AndroidNotificationDetails(
Platform.isAndroid ? 'com.headstrt.app' : 'com.headstrt.app',
'Flutter chat demo',
'your channel description',
playSound: true,
enableVibration: true,
importance: Importance.Max,
priority: Priority.High,
styleInformation: BigTextStyleInformation(''),
);
Run Code Online (Sandbox Code Playgroud)
我也指定了样式,但仍然没有显示所有行。