【问题标题】:Icon not show properly in notification in audio_service flutter图标未在 audio_service 颤动的通知中正确显示
【发布时间】:2022-06-22 20:55:13
【问题描述】:

我正在使用audio_serviceflutter 包在后台播放音频以及从锁定屏幕和通知栏进行控制。这工作正常。我只是遇到了图标的问题,该图标在 iOS 图标显示时未在 android 中显示,但显示太小。下面附上截图:

Android Screenshoot

iOS Screenshoot

【问题讨论】:

    标签: flutter notifications audio-service


    【解决方案1】:

    Android 中的通知图标必须为白色或黑色。不接受白色或黑色以外的任何其他颜色,并导致空白的白色方形符号。您可以检查this website 以生成通知图标。甚至您可以查看通知栏中 Spotify 应用程序图标的外观。

    【讨论】:

      猜你喜欢
      • 2022-11-13
      • 2020-07-31
      • 2021-12-12
      • 1970-01-01
      • 2019-12-13
      • 2021-02-08
      • 2022-12-25
      • 2023-04-05
      相关资源
      最近更新 更多