最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xml - Flutter quick_actions not showing icons in release mode - Android - Stack Overflow

programmeradmin3浏览0评论

Flutter quick action icons aren't showing in release mode, the same icons appear correctly in debug mode.

As evident in the image below, I have added quick_actions.xml file correctly I believe.

My questions:

  1. Why is YT icon still working while remaining two are not in release mode
  2. Why all of them are working correctly in debug mode

Also this is my styles.xml file in main/res/values

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             Flutter draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.
         
         This Theme is only used starting with V2 of Flutter's Android embedding. -->
    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowBackground">?android:colorBackground</item>
    </style>

    <style name="QuickActions">
        <item name="android:windowBackground">@drawable/quick_actions</item>
    </style>
</resources>

发布评论

评论列表(0)

  1. 暂无评论