Flutter如何手动安装软件包 [英] Flutter how to manually install packages

查看:122
本文介绍了Flutter如何手动安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否无法手动下载并安装软件包?使用他们的包管理器感到非常沮丧,这次它在0.4秒内下载,但每次尝试等待几分钟后,下一次都无法下载.太不可靠了.

Is there no way to manually download a package and install it? It's so frustrating using their package manager which this time downloads in 0.4 seconds but the next cannot download ever after multiple tries waiting several minutes each time. It's just so unreliable.

至少可以看到进度条或其他内容吗?下载时遇到很多麻烦似乎很荒谬,我可以在2秒钟之内在浏览器中下载,并且每次都会成功.

Is there at least a way I can see a progress bar on it or something? It just seems ridiculous to have so much trouble downloading something that I could download in 2 seconds in my browser and it would be successful every single time.

我浪费了半天时间只是试图下载一个软件包,因此我可以继续我的项目.只是rflutter_alert ...我的意思是它到底有多大?

I've wasted half the day just trying to download a package so I can continue with my project because of this. It's just rflutter_alert...I mean how big can it really be?

推荐答案

要从其他答案扩展,完整的过程是从github和Mac上下载软件包,并将其放置在文件夹users/*username*/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/中.对于Windows,我不知道这些软件包的位置.

To extend from the other answer, the complete procedure is to download the packages from github and on Mac, to place them in the folder users/*username*/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/. For windows I'm unaware of the location of these packages.

您还需要将名称从rflutter_alert-master更改为rflutter_alert-1.0.3,并在其中添加正确的版本号.

You will also need to change the name from rflutter_alert-master to rflutter_alert-1.0.3 and add the correct version number in.

如果从那里运行flutter pub get,它将成功完成,因为没有要下载的内容.

From there if you run flutter pub get it will successfully complete no problem because there is nothing to download.

这篇关于Flutter如何手动安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆