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 for GIFs in splash screen for web #547

Merged
merged 1 commit into from
May 14, 2023
Merged

feat: support for GIFs in splash screen for web #547

merged 1 commit into from
May 14, 2023

Conversation

OutdatedGuy
Copy link
Contributor

@OutdatedGuy OutdatedGuy commented May 7, 2023

Added animated GIF support for branding, splash and background images on web.

Test Configuration Details
Images
Main Background Branding
loading-hand splash-bg branding
Config Code
flutter_native_splash:
  # color: "#e1f5fe"
  background_image: "assets/splash-images/splash-bg.png"
  image: assets/splash-images/loading-hand.gif
  branding: assets/splash-images/branding.png

  # color_dark: "#042a49"
  background_image_dark: "assets/splash-images/splash-bg.png"
  image_dark: assets/splash-images/loading-hand.gif
  branding_dark: assets/splash-images/branding.png

  # The android, ios and web parameters can be used to disable generating a splash screen on a given
  # platform.
  android: false
  ios: false
  #web: false

  fullscreen: true

Working

After running flutter pub run flutter_native_splash:create

Before

See More
pixelDensity Resultant Image
1 light-1x
2 light-2x
3 light-3x
4 light-4x
Final Result Screenshot 2023-05-07 at 4 26 35 PM

After

See More
pixelDensity Resultant Image
1 light-1x
2 light-2x
3 light-3x
4 light-4x
Final Result Screenshot 2023-05-07 at 4 22 58 PM

related #245

@OutdatedGuy OutdatedGuy marked this pull request as draft May 7, 2023 11:02
@OutdatedGuy OutdatedGuy marked this pull request as ready for review May 7, 2023 11:16
@jonbhanson jonbhanson merged commit 877c6f3 into jonbhanson:master May 14, 2023
@jonbhanson
Copy link
Owner

Thanks @OutdatedGuy!

@OutdatedGuy OutdatedGuy deleted the feat/gif-support-for-web branch May 14, 2023 22:03
doananhtuan22111996 pushed a commit to lux-studio-66/flutter_native_splash that referenced this pull request May 27, 2023
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