当我从左向右滑动时,我不希望它在 flutter 中退出 wearos 应用程序

When I swipe from left to right, I don't want it to exit the wearos application in flutter

当我从左向右滑动时,我不希望它退出 wearos 应用程序(在 flutter/wearos 中)。我能为此做什么?

实际上,此路径为 kotlin 和 java 在 androiddevelopers 中编写,但我看不到 flutter。所以我写它是为了颤动。几乎一切都是一样的。 你应该打开styles.xml(android/app/src/main/res/values/styles.xml)。然后你应该在启动主题中写false this。 所以它应该看起来像这样

<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>
        <item name="android:windowSwipeToDismiss">false</item>
    </style>