1.创建 Flutter 工程

flutter create <output directory>

D:\notebook\flutter\projects\ui_tutorial\layout>flutter create layout_app
Creating project layout_app...
layout_app\.gitignore (created)
layout_app\.idea\libraries\Dart_SDK.xml (created)
layout_app\.idea\libraries\Flutter_for_Android.xml (created)
layout_app\.idea\libraries\KotlinJavaRuntime.xml (created)
layout_app\.idea\modules.xml (created)
layout_app\.idea\runConfigurations\main_dart.xml (created)
layout_app\.idea\workspace.xml (created)
layout_app\.metadata (created)
layout_app\android\app\build.gradle (created)
layout_app\android\app\src\main\java\com\example\layout_app\MainActivity.java
(created)
layout_app\android\build.gradle (created)
layout_app\android\layout_app_android.iml (created)
layout_app\android\app\src\debug\AndroidManifest.xml (created)
layout_app\android\app\src\main\AndroidManifest.xml (created)
layout_app\android\app\src\main\res\drawable\launch_background.xml (created)
layout_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
layout_app\android\app\src\main\res\values\styles.xml (created)
layout_app\android\app\src\profile\AndroidManifest.xml (created)
layout_app\android\gradle\wrapper\gradle-wrapper.properties (created)
layout_app\android\gradle.properties (created)
layout_app\android\settings.gradle (created)
layout_app\ios\Runner\AppDelegate.h (created)
layout_app\ios\Runner\AppDelegate.m (created)
layout_app\ios\Runner\main.m (created)
layout_app\ios\Runner.xcodeproj\project.pbxproj (created)
layout_app\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme
(created)
layout_app\ios\Flutter\AppFrameworkInfo.plist (created)
layout_app\ios\Flutter\Debug.xcconfig (created)
layout_app\ios\Flutter\Release.xcconfig (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json
(created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-1024x1024@1x .png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@3x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@1x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@2x.png (created)
layout_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-.5x83.@2x .png (created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@2x.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@3x.png
(created)
layout_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created) layout_app\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
layout_app\ios\Runner\Base.lproj\Main.storyboard (created)
layout_app\ios\Runner\Info.plist (created)
layout_app\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata
(created)
layout_app\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
layout_app\lib\main.dart (created)
layout_app\layout_app.iml (created)
layout_app\pubspec.yaml (created)
layout_app\README.md (created)
layout_app\test\widget_test.dart (created)
Running "flutter packages get" in layout_app... .1s
Wrote files. All done!
[√] Flutter is fully installed. (Channel beta, v1.2.1, on Microsoft Windows
[Version 6.1.], locale zh-CN)
[√] Android toolchain - develop for Android devices is fully installed. (Android SDK version 28.0.)
[!] Android Studio is not available. (not installed)
[!] Connected device is not available. Run "flutter doctor" for information about installing additional components. In order to run your application, type: $ cd layout_app
$ flutter run Your application code is in layout_app\lib\main.dart. D:\notebook\flutter\projects\ui_tutorial\layout>

2. Flutter 编译 apk

flutter build [apk]

D:\notebook\flutter\projects\ui_tutorial\layout>cd layout_app

D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>flutter build
Flutter build commands. Usage: flutter build <subcommand> [arguments]
-h, --help Print this usage information. Available subcommands:
aot Build an ahead-of-time compiled snapshot of your app's Dart code.
apk Build an Android APK file from your app.
appbundle Build an Android App Bundle file from your app.
bundle Build the Flutter assets directory from your app.
flx Deprecated
ios Build an iOS application bundle (Mac OS X host only). Run "flutter help" to see global options. D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>flutter build apk
Initializing gradle... .3s
Resolving dependencies... .5s
Running Gradle task 'assembleRelease'...
Calling mockable JAR artifact transform to create file: C:\Users\Administrator\.
gradle\caches\transforms-\files-1.1\android.jar\9af1ff324598fa2d595c0bf1564a0c1
\android.jar with input D:\softs\Android\android-sdk\platforms\android-\andro
id.jar
Running Gradle task 'assembleRelease'... .9s (!)
Built build\app\outputs\apk\release\app-release.apk (.8MB). D:\notebook\flutter\projects\ui_tutorial\layout\layout_app>

 Flutter 是站在巨人的肩膀上做出来的优秀作品。

Flutter编程:Flutter命令行的学习的更多相关文章

  1. flutter之VSCode下Flutter常用终端命令行

    https://www.cnblogs.com/lxlx1798/p/11049922.html 梁飞宇 [Flutter学习]之VSCode下Flutter常用终端命令行 Flutter 常用命令行 ...

  2. 【Flutter学习】之VSCode下Flutter常用终端命令行

    Flutter 常用命令行 相关项目操作 查看Flutter版本 查看当前版本 flutter --version 查看所有版本 flutter version 打印所有命令行用法信息 flutter ...

  3. python 命令行参数学习(一)

    用了这么久,还没怎么学习python的命令行参数,是在惭愧. 参考文章地址:http://www.cnblogs.com/jianboqi/archive/2013/01/10/2854726.htm ...

  4. FFmpeg命令行工具学习(一):查看媒体文件头信息工具ffprobe

    一.简述 ffprobe是ffmpeg命令行工具中相对简单的,此命令是用来查看媒体文件格式的工具. 二.命令格式 在命令行中输入如下格式的命令: ffprobe [文件名] 三.使用ffprobe查看 ...

  5. FFmpeg命令行工具学习(三):媒体文件转换工具ffmpeg

    一.简述 ffmpeg是一个非常强大的工具,它可以转换任何格式的媒体文件,并且还可以用自己的AudioFilter以及VideoFilter进行处理和编辑.有了它,我们就可以对媒体文件做很多我们想做的 ...

  6. FFmpeg命令行工具学习(二):播放媒体文件的工具ffplay

    一.简述 ffplay是以FFmpeg框架为基础,外加渲染音视频的库libSDL构建的媒体文件播放器. 在使用ffplay之前必须要安装到系统中,MAC的安装教程为:http://www.cnblog ...

  7. FFmpeg命令行工具学习(四):FFmpeg 采集设备

    在使用 FFmpeg 作为编码器时,可以使用FFmpeg采集本地的音视频采集设备的数据,然后进行编码.封装.传输等操作. 例如,我们可以采集摄像头的图像作为视频,采集麦克风的数据作为音频,然后对采集的 ...

  8. Bash编程(3) 命令行解析与扩展

    $@表示脚本输入的全部参数,在bash脚本中,若$@增加引号("$@"),则包含空格的参数也会被保留,若不增加引号($@),则包含空格的参数会被拆分. 例: # sa脚本内容如下: ...

  9. [转载]Python命令行参数学习

    转载自: http://blog.163.com/weak_time/blog/static/25852809120169333247925/ Python的命令行参数,提供了很多有用的功能,可以方便 ...

随机推荐

  1. 过渡函数transition-timing-function

  2. 编写高质量代码改善C#程序的157个建议——建议50:在Dispose模式中应区别对待托管资源和非托管资源

    建议50:在Dispose模式中应区别对待托管资源和非托管资源 真正资源释放代码的那个虚方法是带一个bool参数的,带这个参数,是因为我们在资源释放时要区别对待托管资源和非托管资源. 提供给调用者调用 ...

  3. 编写高质量代码改善C#程序的157个建议——建议19:使用更有效的对象和集合初始化

    建议19:使用更有效的对象和集合初始化 依赖于属性和FCL 3.5之后的语法规则,现在我们有了更加简洁有效的对象和集合初始化机制:对象和集合初始化设定项. 对象初始化: class Person { ...

  4. WndProc

    主要用在拦截并处理系统消息和自定义消息. form窗体的一个重载方法. protected override void WndProc(ref Message m) { //拦截窗体最小化按钮消息 i ...

  5. C 可变参数的宏定义

    宏定义 也能来可变参数..吼吼..方便好多.. #define T(x,y...) printf(x,##y); C99标准..这我也管不到.... 关键是那个 ... 和 ## 我也不推荐到首页.记 ...

  6. Android Butterknife框架 注解攻略

    一.原理. 最近发现一个很好用的开源框架,蛮不错的,可以简化你的代码,是关于注解的.不多说直接进入使用步骤讲解. 二.步骤. 1.准备阶段,先到官网( http://jakewharton.githu ...

  7. ExposedObject的使用

    ExposedObject可以将一个对象快速封装未一个dynamic using System; namespace ConsoleApp2 { class Program { static void ...

  8. 教你如何选择BI数据可视化工具

    本文来自网易云社区. 关于如何选择BI数据可视化工具,总体而言,主流BI产品在选择的时候要除了需要考虑从数据到展现.从公司内到公司外等各种场景,结合前面朋友的回答,还需要考虑以下几点:1:以后的数据处 ...

  9. vs2015+opencv3.3.1 +Eigen 3.3.4 c++ 实现 泊松图像编辑(无缝融合)

    #define EIGEN_USE_MKL_ALL #define EIGEN_VECTORIZE_SSE4_2 #include <iostream> #include "co ...

  10. VIN-Fusion config with Realsense D435i

    ### First shot Copy the .launch file in package VINS-Fusion to the directory of realsense2_cameara/l ...