美文网首页
flutter初体验

flutter初体验

作者: 朝西的生活 | 来源:发表于2019-04-06 21:19 被阅读0次

    安装

    笔者环境是ubuntu 16.64 X64, 机器上已经搭建好安卓环境, 整个过程安装比较顺利

    • 安装安卓环境
    • flutter 运行环境
    1. 下载 flutter SDK,
    2. 新建flutter目录并解压sdk到目录
    mkdir -p /opt/flutter && cd /opt/flutter
    tar xf ~/Downloads/flutter_linux_v1.0.0-stable.tar.xz
    
    1. 将flutter环境变量加入到zshrc/bashrc中
    vi ~/.zshrc
    export PATH=$PATH:/opt/flutter/flutter/bin
    source ~/.zshrc
    
    1. 运行flutter诊断
    flutter doctor
    

    optouts:

    ➜  ~ flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
    [✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
    [✓] Android Studio (version 3.1)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [!] VS Code (version 1.29.1)
    [✓] Connected device (1 available)
    
    ! Doctor found issues in 1 category.
    
    
    • 编辑器
      笔者用的VS Code, 需要安装flutterdart两个插件(安装flutter会自动安装dart)
      参考:flutter官网

    相关文章

      网友评论

          本文标题:flutter初体验

          本文链接:https://www.haomeiwen.com/subject/ujazcqtx.html