gpt4 book ai didi

flutter - 包会损害 flutter 应用程序吗?

转载 作者:行者123 更新时间:2023-12-03 03:00:31 25 4
gpt4 key购买 nike

我在我的 flutter 应用程序中使用了太多的包,这样做不是一件好事吗?许多包会损害应用程序的性能吗?

最佳答案

在浏览网络后,我找不到一篇讨论这个问题的文章,甚至连 flutter 文档都没有。
但是在他们关于优化应用程序的部分中,flutter 团队说减少应用程序大小(这也会明显影响性能):

Some of the other things you can do to make your app smaller are:

Remove unused resources

Minimize resource imported from libraries

Support a limited number of screen densities

Compress PNG and JPEG files


看着 :

Remove unused resources

Minimize resource imported from libraries


您可以得出结论,包含包并不会主要影响性能,但是从这些包中导入大量资源到您的文件中并且没有有效地使用它们会损害它
最后要说明的是,从我对 flutter 的使用以及在我的应用程序中经常使用很多包(以节省大量样板)来看,我不能说我注意到由于我的应用程序中存在许多包而导致的任何性能问题

关于flutter - 包会损害 flutter 应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61391845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com