【问题标题】:How to use an image other than the app icon in the splash screen for android如何在 android 的启动画面中使用除应用程序图标之外的图像
【发布时间】:2019-01-20 17:37:33
【问题描述】:

我刚刚在 android 的 mipmap 文件夹和 IOS 的 assets.xcassets 文件夹中为我的应用程序图标添加了一个徽标,并且我为可绘制文件夹使用了不同的图像,因此我可以显示为启动屏幕而不是像素化图标徽标。但是现在应用程序图标显示初始屏幕图像并且我设计的徽标没有显示。知道哪个文件夹代表启动画面,哪个文件夹代表 android 中的徽标吗?

【问题讨论】:

标签: android dart icons flutter


【解决方案1】:

如果您使用flutter launcher icons 包,您可以更改启动屏幕以及android 和ios 的启动器图标。

【讨论】:

  • 我使用了该软件包,它生成了所需的文件,但是应用程序图标与启动画面的图像相同,这就是问题所在。如果有帮助,这里是图标的代码:flutter_icons: android: true ios: true image_path: "assets/icon/App_Icon.png" image_path_android: 'assets/icon/App_Icon_Circle.png' adaptive_icon_background: "#FFFAFAFA" adaptive_icon_foreground: "assets/SplashScreen_Image.png"
  • 你可以使用这个包来创建启动器图标,如果你需要的话,可以使用 splashscreen 包覆盖它。
【解决方案2】:

这已经得到解答,但作为建议,我发现一个单独的启动屏幕依赖项运行良好,available here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-31
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多