简体   繁体   English

如何从应用程序中删除flutter_native_splash?

[英]How to remove flutter_native_splash from app?

I used flutter_native_splash: ^1.3.2 for splash screen, i want to remove this splash screen.我使用flutter_native_splash: ^1.3.2作为启动画面,我想删除这个启动画面。

Below code is in pubspec.yaml file.下面的代码在pubspec.yaml文件中。

flutter_native_splash:
  color: "#ffffff"
  image: assets/images/AppLogo.png
  android: true
  ios: true

I used flutter pub run flutter_native_splash:remove command to remove, And i also remove flutter_native_splash (Above code) dependency from pubspec.yaml file.我使用flutter pub run flutter_native_splash:remove命令来删除,并且我还从pubspec.yaml文件中删除了flutter_native_splash(以上代码)依赖项。 And then i clean my project using flutter clean command.然后我使用 flutter clean 命令清理我的项目。 then get the packages.然后拿到包裹。 So now when i run the app it shows the splash screen which i removed.所以现在当我运行应用程序时,它会显示我删除的启动画面。 so please Help me.所以请帮助我。 Thank you.谢谢你。

As you can read in the GitHub issue on how to uninstall the package, this is a generator and you also have to remove the generated files.您可以在GitHub 问题中阅读有关如何卸载 package 的问题,这是一个生成器,您还必须删除生成的文件。 So ideally, if you have version control you could just revert you changes when adding the files.所以理想情况下,如果你有版本控制,你可以在添加文件时恢复你的更改。 Else you have to manually remove the changes such as the launch_background.xml, styles.xml etc.否则,您必须手动删除诸如launch_background.xml, styles.xml等更改。

You can get a good hint which files might be affected by scanning the templates of this package.通过扫描此 package 的模板,您可以很好地提示哪些文件可能会受到影响。

iOS has a known caching issue that maintains a splash screen even after it has been removed. iOS 有一个已知的缓存问题,即使在删除后仍会保持启动画面。 If the problem is on iOS, it may be cause by this caching issue .如果问题出在 iOS 上,则可能是由这个缓存问题引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何删除或更改flutter_native_splash? - How to remove or change flutter_native_splash? 如何在 flutter 中使用 flutter_native_splash package 更改启动画面的时间? - How to change time for splash screen using flutter_native_splash package in flutter? Flutter:运行此代码后删除flutter_native_splash和flutter_launcher_icons的代码是否安全? - Flutter: Is it safe if I remove the code of flutter_native_splash & flutter_launcher_icons after run this code? 用户登录时使用flutter_native_splash时如何跳过启动画面 - How to skip the splash screen when use flutter_native_splash while user is logged In 如何使用 Flutter_native_splash 在初始屏幕底部添加文本 - How to add text at bottom in splash screen using Flutter_native_splash 如何从flutter应用程序中删除本机启动画面? - How to remove native splash screen from flutter app? flutter_native_splash package:图像在 Android 上没有按比例缩小 - flutter_native_splash package: image does not scale down on Android 如何在 pub package“flutter_native_splash”中调整图像大小? - How can I resize image in pub package "flutter_native_splash"? 你可以在 flutter_native_splash 中调整图像的大小吗? - Can you resize an image in a flutter_native_splash? "根据flutter_native_splash的初始化阶段决定路由" - decide the route based on the initialization phase of flutter_native_splash
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM