android
library
Functions
createAdaptiveIcons (Config config , String ? flavor )
→ Future <void >
createAdaptiveMonochromeIcons (Config config , String ? flavor )
→ Future <void >
createDefaultIcons (Config config , String ? flavor )
→ Future <void >
createMipmapXmlFile (Config config , String ? flavor )
→ Future <void >
createNewColorsFile (String backgroundColor , String ? flavor )
→ Future <void >
Creates a colors.xml file if it was missing from android/app/src/main/res/values/colors.xml
isAdaptiveIconConfigPngFile (String backgroundFile )
→ bool
Returns true if the adaptive icon configuration is a PNG image
isAndroidIconNameCorrectFormat (String iconName )
→ bool
Ensures that the Android icon name is in the correct format
isCorrectMipmapDirectoryForAdaptiveIcon (String path )
→ bool
(NOTE THIS IS JUST USED FOR UNIT TEST)
Ensures the correct path is used for generating adaptive icons
"Next you must create alternative drawable resources in your app for use with
Android 8.0 (API level 26) in res/mipmap-anydpi/ic_launcher.xml"
Source: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive
minSdk ()
→ Future <int >
Retrieves the minSdk value from the
overwriteAndroidManifestWithNewLauncherIcon (String iconName , File androidManifestFile )
→ Future <void >
Updates the line which specifies the launcher icon within the AndroidManifest.xml
with the new icon name (only if it has changed)
overwriteExistingIcons (AndroidIconTemplate template , Image image , String filename , String ? flavor )
→ Future <void >
Overrides the existing launcher icons in the project
Note: Do not change interpolation unless you end up with better results (see issue for result when using cubic
interpolation)
https://github.com/fluttercommunity/flutter_launcher_icons/issues/101#issuecomment-495528733
updateColorsFile (File colorsFile , String backgroundColor )
→ Future <void >
Updates the colors.xml with the new adaptive launcher icon color
updateColorsXmlFile (String backgroundConfig , String ? flavor )
→ Future <void >
Retrieves the colors.xml file for the project.
flutter_launcher_icons 0.14.4