flutter的按钮如何变为不可选中_Flutter 不能热加载,热重载按钮灰色,无法点击解决方案...

一、现象:

Flutter 不能热加载 热重载按钮灰色,无法点击。

二、分析原因:

没有设置无代理的端口

*~flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[*]Flutter (Channel stable, v1.7.8, on Mac OS X 10.14.3 18D109, locale

zh-Hans-CN)

[*]Android toolchain - develop for Android devices (Android SDK version 29.0.1)

[*]Xcode - develop for iOS and macOS (Xcode 10.2.1)

[*]iOS tools - develop for iOS devices

[*]Android Studio (version 3.5)

[*]VS Code (version 1.41.1)

[!]Proxy Configuration

!NO_PROXY is not set

[*]Connected device (1 available)

!Doctor found issues in 1 category.

三、解决方案:

设置 NO_PROXY即可

1.启动终端

2.进入当前用户的home目录

cd ~ 或者  cd /users/YourMacUserName

3.输入touch .bash_profile

查看和编辑.bash_profile文件

1.终端输入open -e .bash_profile

2.编辑文件,新增

3.关闭保存

最后更新配置的环境变量

输入:source .bash_profile

操作如下:

*~cd ~

*~touch .bash_profile

*~open -e .bash_profile

*~source .bash_profile

*~flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[*]Flutter (Channel stable, v1.7.8, on Mac OS X 10.14.3 18D109, locale

zh-Hans-CN)

[*]Android toolchain - develop for Android devices (Android SDK version 29.0.1)

[*]Xcode - develop for iOS and macOS (Xcode 10.2.1)

[*]iOS tools - develop for iOS devices

[*]Android Studio (version 3.5)

[*]VS Code (version 1.41.1)

[*]Proxy Configuration

[*]Connected device (1 available)

•No issues found!

*~

四、验证

运行时,热重载按钮变为橙色,可以点击。

快捷键保存编辑时,自动重载。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值