cmd/command_line
library
Functions
-
applyAndroidSplashImage({String? imageSource, String? color, String? gravity, YamlMap? android12AndAbove, String? backgroundImage, String? backgroundImageSource, String? backgroundImageGravity, String? darkImage, String? darkColor, String? darkGravity})
→ Future<void>
-
Apply the splash images to Android
-
applySplash({String? imageSource, String? color, String? gravity, String? iosContentMode, String? backgroundImage, String? iosBackgroundContentMode, YamlMap? android12AndAbove, String? backgroundImageSource, String? backgroundImageGravity, String? darkImage, String? darkColor, String? darkGravity})
→ Future<void>
-
Applies the splash screen on Android and iOS using details from the YAML file.
-
commandEntry(List<String> arguments)
→ void
-
-
createAndroid12Styles({required File styleFile, String? color, String? imageSource, String? brandingImageSource})
→ Future<void>
-
Updates the
styles.xml
file for the splash screen setup for Android 12+.
-
createBackgroundImage(Image image, File imageFile)
→ 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})
→ Future<void>
-
-
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})
→ Future<void>
-
Generate splash images for the iOS
-
getBackgroundImageElement(XmlElement? subViews)
→ XmlNode?
-
Create element for background element.
-
getImageXMLElement({String? elementId, String? imageName, String? contentMode})
→ XmlElement
-
-
setupSplashScreen(YamlMap splashData)
→ 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})
→ Future<void>
-
Update the default storyboard content with the provided details
Image, Color and contentMode
-
updateDarkStylesXml({YamlMap? android12AndAbove, String? color})
→ Future<void>
-
Updates the
values-night/styles.xml
file for the splash screen setup.
-
updateStylesXml({YamlMap? android12AndAbove, String? color})
→ Future<void>
-
Updates the
styles.xml
file for the splash screen setup.