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. 手机APP兼容性测试

    兼容性测试方案 兼容性问题 屏幕分辨率兼容性问题 软件(iOS和Android系统版本及不同厂家的定制ROM)兼容性问题 硬件(不同的CPU.内存大小等等)兼容性问题 网络(2G/3G/4G/WIFI ...

  2. 二度Xml<2>

    一下介绍xml的基本操作,添加xml新节点: 其他方法在前一篇日记中有详细讲解,请详见:http://www.cnblogs.com/fjsnail/archive/2012/10/20/273212 ...

  3. 关于VBS的一个怪现象

    今天一个同学让我帮忙写一个程序,要求是: 输入一个n,返回从0到n中任意个数的组合,返回取异或结果为0的组合.来看VBS代码 n = p = "" ^n - s = s = s ) ...

  4. CreateExcel 导出Excel

    public class CreateExcel { /// <summary> /// 用Excel组件导出Excel文件 /// </summary> /// <pa ...

  5. c#设计模式之:组合模式(Composite)

    一:引言 在软件开发过程中,我们经常会遇到处理简单对象和复合对象的情况,例如对操作系统中目录的处理,因为目录客园包括单独的文件,也可以包括文件夹,文件夹又是由文件组成的,由于简单对象和复合对象在功能上 ...

  6. 以太坊系列之十三: evm指令集

    evm指令集手册 Opcodes 结果列为"-"表示没有运算结果(不会在栈上产生值),为"*"是特殊情况,其他都表示运算产生唯一值,并放在栈顶. mem[a.. ...

  7. Linux虚拟机安装 nginx (nginx1.9.9)

    1.安装基础环境包(如果已安装,可更新) yum -y :自动选择y yum -y install openssl* yum -y install libjpeg libjpeg-devel libp ...

  8. 初学python - 常见函数使用

    *** 读入两个整数 a,b=eval(input()) ***range()函数 创建列表 :range( 1, 11,2) - 产生 [1,11) 相差为2数,2为步长 ***print()函数 ...

  9. NSCalendar日历

    前言 NSCalendar 对世界上现存的常用的历法进行了封装,既提供了不同历法的时间信息,又支持日历的计算. NSCalendar -- 日历类,它提供了大部分的日期计算接口,并且允许您在NSDat ...

  10. rtabmap and rtabmap_ros make error(rtabmap编译错误)

    Build from source following README.nd in rtabmap_ros rtabmap make error Error 1 make[2]: *** No rule ...