VdoCipher / sample_flutter_app

Sample Flutter application with VdoCipher flutter plugin integration
4 stars 3 forks source link

App is crashing on Android Dark Theme #7

Open walikhan226 opened 6 months ago

walikhan226 commented 6 months ago

signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1725)] Check failed: fml::jni::CheckException(env). ' x0 0000000000000000 x1 0000000000003804 x2 0000000000000006 x3 0000007fdbc9d0a0 x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000080 x8 00000000000000f0 x9 0265e66b6320e395 x10 0000000000000001 x11 0000000000000000 x12 fffffff0fffffbdf x13 0000000000000002 x14 0000000000000001 x15 0000000000000000 x16 0000007ab63ec740 x17 0000007ab63ca740 x18 0000007ab8972000 x19 0000000000003804 x20 0000000000003804 x21 00000000ffffffff x22 0000007a32ccfcc0 x23 00000079c156a178 x24 0000000000000000 x25 0000000000000228 x26 0000000000000000 x27 0000007fdbc9d398 x28 0000000000000081 x29 0000007fdbc9d140 sp 0000007fdbc9d080 lr 0000007ab637a484 pc 0000007ab637a4b0 backtrace:

00 pc 00000000000744b0 /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 874ae3776517f9033b48af82e01d6a52)

  #01 pc 0000000001cd57ec  /data/app/co.ivyonline.app-UBPW8R0LvVz6i7tsJogB-w==/lib/arm64/libflutter.so!libflutter.so (offset 0x1cd4000) (BuildId: 663831bc38df16561687e90a061ef3612aedc929)
AbdallahZidano commented 5 months ago

Any update ?

codingstark-dev commented 4 months ago

Getting same issue!!

codingstark-dev commented 4 months ago

Add this code on main > res > values-night > styles.xml @walikhan226

<?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 on -->
    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             the Flutter engine 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="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowBackground">?android:colorBackground</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
</resources>