Im doing a flutter growth however on android for the splash web page.
I’m having points with my splash icon, its not turning out as I anticipated. I do have a coloured background, however my splash icon is displaying zoomed in, distorted and kind-of pixelated.
Issues I’ve carried out are, double checked dimensions, created the icon with totally different dimensions and densities, adopted the directions and necessities on android growth docs, I even adopted the instance within the documentation lol.
Listed here are the codes:
values-night/kinds.xml
<?xml model="1.0" encoding="utf-8"?>
<sources>
<!-- Theme utilized to the Android Window whereas the method is beginning when the OS's Darkish Mode setting is on -->
<model title="LaunchTheme" mother or father="@android:model/Theme.Black.NoTitleBar">
<!-- Present a splash display on the exercise. Robotically eliminated when
the Flutter engine attracts its first body -->
<merchandise title="android:forceDarkAllowed">false</merchandise>
<merchandise title="android:windowFullscreen">false</merchandise>
<merchandise title="android:windowDrawsSystemBarBackgrounds">false</merchandise>
<merchandise title="android:windowSplashScreenBackground">#FFCF4A</merchandise>
<merchandise title="android:windowSplashScreenAnimatedIcon">@drawable/trans_icon_2</merchandise>
</model>
<!-- Theme utilized to the Android Window as quickly as the method has began.
This theme determines the colour of the Android Window whereas your
Flutter UI initializes, in addition to behind your Flutter UI whereas its
operating.
This Theme is simply used beginning with V2 of Flutter's Android embedding. -->
<model title="NormalTheme" mother or father="@android:model/Theme.Black.NoTitleBar">
<merchandise title="android:windowBackground">?android:colorBackground</merchandise>
</model>
</sources>
values-night-v31/kinds.xml
<?xml model="1.0" encoding="utf-8"?>
<sources>
<!-- Theme utilized to the Android Window whereas the method is beginning when the OS's Darkish Mode setting is off -->
<model title="LaunchTheme" mother or father="@android:model/Theme.Black.NoTitleBar">
<merchandise title="android:forceDarkAllowed">false</merchandise>
<merchandise title="android:windowFullscreen">false</merchandise>
<merchandise title="android:windowDrawsSystemBarBackgrounds">false</merchandise>
<merchandise title="android:windowLayoutInDisplayCutoutMode">shortEdges</merchandise>
<merchandise title="android:windowSplashScreenBackground">#FFCF4A</merchandise>
<merchandise title="android:windowSplashScreenAnimatedIcon">@drawable/trans_icon_2</merchandise>
</model>
<!-- Theme utilized to the Android Window as quickly as the method has began.
This theme determines the colour of the Android Window whereas your
Flutter UI initializes, in addition to behind your Flutter UI whereas its
operating.
This Theme is simply used beginning with V2 of Flutter's Android embedding. -->
<model title="NormalTheme" mother or father="@android:model/Theme.Black.NoTitleBar">
<merchandise title="android:windowBackground">?android:colorBackground</merchandise>
</model>
</sources>
values-v31/kinds.xml
<?xml model="1.0" encoding="utf-8"?>
<sources>
<!-- Theme utilized to the Android Window whereas the method is beginning when the OS's Darkish Mode setting is off -->
<model title="LaunchTheme" mother or father="@android:model/Theme.Mild.NoTitleBar">
<merchandise title="android:forceDarkAllowed">false</merchandise>
<merchandise title="android:windowFullscreen">false</merchandise>
<merchandise title="android:windowDrawsSystemBarBackgrounds">false</merchandise>
<merchandise title="android:windowSplashScreenBackground">#FFCF4A</merchandise>
<merchandise title="android:windowSplashScreenAnimatedIcon">@drawable/trans_icon_2</merchandise>
</model>
<!-- Theme utilized to the Android Window as quickly as the method has began.
This theme determines the colour of the Android Window whereas your
Flutter UI initializes, in addition to behind your Flutter UI whereas its
operating.
This Theme is simply used beginning with V2 of Flutter's Android embedding. -->
<model title="NormalTheme" mother or father="@android:model/Theme.Mild.NoTitleBar">
<merchandise title="android:windowBackground">?android:colorBackground</merchandise>
</model>
</sources>
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
bundle="">
<utility
android:label=""
android:title="${applicationName}"
android:icon="@mipmap/launcher_icon">
<exercise
android:title=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@model/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to use to this Exercise as quickly as
the Android course of has began. This theme is seen to the consumer
whereas the Flutter UI initializes. After that, this theme continues
to find out the Window background behind the Flutter UI. -->
<meta-data
android:title="io.flutter.embedding.android.NormalTheme"
android:useful resource="@model/NormalTheme"
/>
<intent-filter>
<motion android:title="android.intent.motion.MAIN"/>
<class android:title="android.intent.class.LAUNCHER"/>
<class android:title="android.intent.class.DEFAULT" />
<class android:title="android.intent.class.BROWSABLE" />
</intent-filter>
</exercise>
<!-- Do not delete the meta-data under.
That is utilized by the Flutter device to generate GeneratedPluginRegistrant.java -->
<meta-data
android:title="flutterEmbedding"
android:worth="2" />
<meta-data
android:title=""
android:worth="high_importance_channel"/>
</utility>
<uses-permission android:title="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:title="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<uses-permission android:title="android.permission.FOREGROUND_SERVICE" />
</manifest>