如何在 Flutter 上以正确的方式访问应用程序图标?

How to access the app icon the right way on Flutter?

我想通过 Flutter 在我的应用程序内部使用我的应用程序的应用程序图标。希望有比将应用程序图标放入资产文件夹更好的方法。

这个问题已经回答了,Flutter 无法访问drawables。所以它无法访问应用程序图标。只需将应用程序图标添加为资产即可!