cmd/command_line
library
Functions
-
applyAndroidSplashImage({String? imageSource, String? color, String? gravity, YamlMap? android12AndAbove, String? backgroundImageSource, String? backgroundImageGravity, String? darkImage, String? darkColor, String? darkGravity, String? darkBackgroundImageSource})
→ Future<void>
-
Generates Android splash assets and updates Android resource files.
-
applySplash({String? imageSource, String? color, String? gravity, String? iosContentMode, String? iosBackgroundContentMode, YamlMap? android12AndAbove, String? backgroundImageSource, String? backgroundImageGravity, String? darkImage, String? darkColor, String? darkGravity, String? darkBackgroundImageSource})
→ Future<void>
-
Applies the splash screen on Android and iOS using details from the YAML file.
-
commandEntry(List<String> arguments)
→ Future<void>
-
-
createAndroid12Styles({required File styleFile, String? color, String? imageSource, String? brandingImageSource, bool isDarkBranding = false, bool isDarkImage = false})
→ Future<void>
-
Writes the Android 12+ splash screen style to
styleFile with the provided
background color, splash icon, and optional branding image.
-
createBackgroundImage(Image? image, File? imageFile, {File? darkImageFile})
→ Future<void>
-
-
createBrandingImageForAndroid12(String drawableFolder, File brandingImageSource)
→ Future<void>
-
Create branding image for the Android 12+
-
createColors({String? color, bool isDark = false})
→ Future<void>
-
Creates a
colors.xml file to define background color for the splash.
-
createDarkSplashImageDrawable({String? darkImage, String? color, String? gravity, String? darkBackgroundImageSource, String? backgroundImageGravity})
→ Future<void>
-
-
createLaunchBackgroundColorSet({required String lightColor, required String darkColor})
→ Future<void>
-
Create a color set for the launch screen background color with light
and dark variants.
-
createSplashImageDrawable({String? imageSource, String? color, String? gravity, String? backgroundImageSource, String? backgroundImageGravity})
→ Future<void>
-
Creates a new
splash_screen.xml file to define the splash screen setup.
-
generateAndroidDarkImage(String image, String drawable)
→ Future<void>
-
-
generateAndroidImages({String? imageSource, String? backgroundImageName, String? darkImageSource})
→ Future<void>
-
Generate splash images for the Android
-
generateImageForAndroid12AndAbove({YamlMap? android12AndAbove})
→ Future<void>
-
-
generateIosImages({String? imageSource, String? color, String? iosContentMode, String? backgroundImage, String? iosBackgroundContentMode, String? darkImageSource, String? darkColor, String? darkBackgroundImage})
→ Future<void>
-
Generate splash images for the iOS
-
getBackgroundImageElement(XmlElement? subViews)
→ XmlElement?
-
Create element for background element.
-
getImageXMLElement({String? elementId, String? imageName, String? contentMode})
→ XmlElement
-
-
setupSplashScreen(YamlMap splashData)
→ Future<void>
-
Setting up the splash screen using the details provided in
pubspec.yaml file under splash_master.
-
updateContentJson(List<Image> images)
→ Future<void>
-
Update the content json file with the generated
splash_image in iOS.
-
updateContentOfStoryboard({String? imagePath, String? color, String? iosContentMode, String? backgroundImage, String? iosBackgroundContentMode, String? darkColor, String? darkBackgroundImage})
→ Future<void>
-
Update the default storyboard content with the provided details
Image, Color and contentMode
-
updateDarkStylesXml({YamlMap? android12AndAbove, String? darkColor, String? darkImage, String? darkBrandingImage, String? darkBackgroundImageSource})
→ Future<void>
-
Generates dark mode splash screen XML styles for both pre-Android 12 and Android 12+ devices.
-
updateStylesXml({YamlMap? android12AndAbove, bool hasDarkDrawable = false})
→ Future<void>
-
Updates
values/styles.xml for pre-Android 12 splash style references.