小编ali*_*883的帖子

多行推送通知颤动

我正在使用 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)

我也指定了样式,但仍然没有显示所有行。

在此输入图像描述

dart flutter

4
推荐指数
1
解决办法
3671
查看次数

标签 统计

dart ×1

flutter ×1