完竣世界 -关注前端分享心得

    • 首页
    • 日常随想
    • 学习笔记
    • 收集
    • 项目案例

flutter添加环境变量

uniapp yekong 2周前 (01-10) 58℃

将flutter下载到本地

https://flutter.dev/docs/get-started/install/macos

我的flutter存放目录

/Users/zhaowanjun/Documents/flutter

设置环境变量

找到.bash_profile
如果看不到隐藏文件,先显示隐藏文件
wanjunshijiecom 2021-01-10 at 10.14.46

编辑.bash_profile

追加代码
wanjunshijiecom 2021-01-10 at 10.16.01

export PATH="/Users/zhaowanjun/Documents/flutter/bin:${PATH}"

执行

source ~/.bash_profile

全局变量搞定
wanjunshijiecom 2021-01-10 at 10.22.44

喜欢 (0)
flutter
apicloud 惠农源app mac显示和隐藏隐藏文件
  • mac Flutter Android Studio 检测不到Simulator
    mac Flutter Android Studio 检测不到Simulator
  • pub get failed (server unavailable) -- attempting retry 1 in 1 second?
    pub get failed (server unavailable) -- attempting retry 1 in 1 second?
  • uni-app vuex持久化存储
    uni-app vuex持久化存储
  • uniapp scroll-view滚动到顶部
    uniapp scroll-view滚动到顶部
  • mac Flutter Android Studio 检测不到Simulator
  • pub get failed (server unavailable) -- attempting retry 1 in 1 second?
  • uni-app vuex持久化存储
  • uniapp scroll-view滚动到顶部
  • uniapp滚动到顶部
  • uni-app 适配刘海屏
  • momentjs获取两个日期相隔多少天
  • momentjs获取当前时间

近期文章

  • uni-app vuex持久化存储
  • vue cli3 打包开启Gzip
  • Cannot read property ‘tapPromise‘ of undefined
  • uniapp scroll-view滚动到顶部
  • uniapp滚动到顶部

分类

  • app
  • css
  • echarts
  • electron
  • flutter
  • nodejs
  • ps
  • python
  • uniapp
  • vue
  • web
  • webpack
  • wordpress
  • 大屏
  • 学习笔记
  • 微信小程序
  • 收集
  • 日常随想
  • 项目案例
完竣世界 基于WordPress构建 © 2011-2020 冀ICP备11019094号