This is probably a problem that only happens on xiaomi devices, where the webviews are forced into darkmode when the system is in darkmode. this results in an ugly looking webview, i've tried adding
<item name="android:forceDarkAllowed">false</item>
to the file android/app/src/main/res/values/styles.xml
but it didn't work.
styles.xml file :
<?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:forceDarkAllowed">false</item>
<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:forceDarkAllowed">false</item>
<item name="android:windowBackground">?android:colorBackground</item>
</style>
<style name="Theme.AppName" parent="Theme.MaterialComponents.DayNight">
<item name="android:forceDarkAllowed">false</item>
</style>
</resources>