flutter_native_splash icon indicating copy to clipboard operation
flutter_native_splash copied to clipboard

`flutter_native_splash:create` changes the formatting of `AndroidManifest.xml` and `Info.plist` even if no changes were made

Open vanyasem opened this issue 1 year ago • 2 comments

Describe the bug

flutter_native_splash:create changes the formatting of AndroidManifest.xml and Info.plist even if no changes were made

Configuration

flutter_native_splash:
  color: "#696969"
  android_screen_orientation: portrait
  image: assets_splash/splash.png
  android_gravity: center|bottom|clip_horizontal|clip_vertical
  ios_content_mode: scaleAspectFill
  web: false
  android_12:
    color: "#696969"

To Reproduce Steps to reproduce the behavior, using the example app:

  1. Apply the splash screen by running flutter_native_splash:create
  2. Make formatting changes to AndroidManifest.xml/Info.plist
  3. Rerun flutter_native_splash:create
  4. Observe the fact that AndroidManifest.xml/Info.plist's formatting was changed, albeit no changes were made

Screenshots Screenshot 2024-08-05 at 12 05 22

Additional context I'd suggest adding a flag that would instruct flutter_native_splash to not make any changes to AndroidManifest.xml/Info.plist, and only replace the images themselves for cases where only the image needs replacement

vanyasem avatar Aug 05 '24 09:08 vanyasem

Sorry, I will not have time to make this update. Feel free to submit a pull request to address this if you would like.

jonbhanson avatar Aug 11 '24 14:08 jonbhanson

would you mind keeping the issue open and not marking is as completed? @jonbhanson

vanyasem avatar Aug 11 '24 15:08 vanyasem