Flutter

Flutter

Posted by nomadli on February 8, 2022

环境

  • https://flutter.cn/docs
  • flutter config –no-analytics
  • flutter config –enable-web
  • export ANDROID_HOME
  • export PATH=flutter/bin:flutter/.pub-cache/bin
  • export PUB_HOSTED_URL=https://pub.flutter-io.cn
  • export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
  • vi ./flutter/packages/flutter_tools/gradle/flutter.gradle
    repositories {
      //google()
      //mavenCentral()
      maven { url 'https://maven.aliyun.com/repository/google' }
      maven { url 'https://maven.aliyun.com/repository/jcenter' }
      maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
      maven { url 'http://download.flutter.io' }
    }
    
  • flutter doctor
  • flutter pub global activate webdev