Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support adjust padding bottom for branding image #709

Merged
merged 15 commits into from
Jul 7, 2024

Conversation

Lzyct
Copy link
Contributor

@Lzyct Lzyct commented Jun 23, 2024

What it does

How to test

  1. follow this documentation to run and generate the native splash screen
  2. enable branding image
  3. add this config on your config yaml
   branding_bottom_padding: 24

  #branding_bottom_padding_ios: 24 #specific config for iOS
  #branding_bottom_padding_android: 24 #specific config for Android
  1. observe the branding image position

Screenshot

BEFORE

iPhone 15 Pro Max

image

iPhone SE

image

< Android 13

image

AFTER

iPhone 15 Pro Max

image

iPhone SE

image

< Android 13

image

@Lzyct Lzyct mentioned this pull request Jun 23, 2024
Copy link
Owner

@jonbhanson jonbhanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the contribution. Just fix the one small mistake and I can merge it in.

lib/android.dart Outdated
@@ -325,8 +331,11 @@ void _applyLaunchBackgroundXml({

if (showBranding && gravity != brandingGravityValue) {
//add branding when splash image and branding image are not at the same position
final androidRandingItemXml = _androidBrandingItemXml.replaceAll(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

androidRandingItemXml is spelled wrong here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the typo.
Please check again @jonbhanson

Thanks

@Lzyct Lzyct requested a review from jonbhanson July 2, 2024 06:56
@jonbhanson jonbhanson merged commit e12dfde into jonbhanson:master Jul 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants