[英]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.