-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflutter_native_splash.yaml
More file actions
57 lines (46 loc) Β· 2.43 KB
/
Copy pathflutter_native_splash.yaml
File metadata and controls
57 lines (46 loc) Β· 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
flutter_native_splash:
# Set solid background color
color: "#225D66"
color_dark: "#225D66"
# Remove main image and use branding for better control
# image: assets/images/toolkit_icon.png # Comment out main image
# # Use branding image for precise positioning
# branding: assets/images/toolkit_icon.png # Better positioning control
# branding_mode: center # Options: center, bottom
# branding_bottom_padding: 100 # Distance from bottom (if using bottom mode)
#
# # Dark mode branding
# branding_dark: assets/images/toolkit_icon.png
# branding_ios: assets/images/toolkit_icon.png
# branding_android: assets/images/toolkit_icon.png
# Android 12+ specific configurations
android_12:
image: assets/images/toolkit_icon.png # Display the same image for Android 12+
color: "#225D66" # Background color for Android 12+
image_dark: assets/images/toolkit_icon.png # Use the same image for dark mode on Android 12+
color_dark: "#225D66" # Same background color for dark mode on Android 12+
# Platform-specific configurations
color_android: "#225D66" # Background color for standard Android
color_dark_android: "#225D66" # Dark mode background color for Android
color_ios: "#225D66" # Background color for iOS
color_dark_ios: "#225D66" # Dark mode background color for iOS
# OPTIMIZED: Image positioning and sizing for best display
android_gravity: center # Center the image on Android
ios_content_mode: scaleAspectFit # Scale to fit while maintaining aspect ratio on iOS
web_image_mode: contain # Contain the entire image within the screen on web
# Image size configuration (recommended: 288x288 for optimal display)
# Make sure your image is properly sized - ideally 288x288px or 512x512px
# Branding image positioning (optional - adds a smaller logo)
branding: assets/images/toolkit_icon.png # Optional: smaller branding image
branding_mode: bottom # Position branding at bottom
branding_ios: assets/images/toolkit_icon.png
branding_android: assets/images/toolkit_icon.png
# Advanced positioning (if you want to fine-tune)
# Note: These work with branding images, not the main splash image
branding_bottom_padding: 24 # Add padding from bottom edge
# Set screen orientation on Android
android_screen_orientation: portrait # Portrait mode for Android
# Enable fullscreen splash on Android and iOS
fullscreen: true
# iOS-specific settings
ios: true # Enable splash screen for iOS