Flutter编程:Flutter命令行的学习
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命令行的学习的更多相关文章
- flutter之VSCode下Flutter常用终端命令行
https://www.cnblogs.com/lxlx1798/p/11049922.html 梁飞宇 [Flutter学习]之VSCode下Flutter常用终端命令行 Flutter 常用命令行 ...
- 【Flutter学习】之VSCode下Flutter常用终端命令行
Flutter 常用命令行 相关项目操作 查看Flutter版本 查看当前版本 flutter --version 查看所有版本 flutter version 打印所有命令行用法信息 flutter ...
- python 命令行参数学习(一)
用了这么久,还没怎么学习python的命令行参数,是在惭愧. 参考文章地址:http://www.cnblogs.com/jianboqi/archive/2013/01/10/2854726.htm ...
- FFmpeg命令行工具学习(一):查看媒体文件头信息工具ffprobe
一.简述 ffprobe是ffmpeg命令行工具中相对简单的,此命令是用来查看媒体文件格式的工具. 二.命令格式 在命令行中输入如下格式的命令: ffprobe [文件名] 三.使用ffprobe查看 ...
- FFmpeg命令行工具学习(三):媒体文件转换工具ffmpeg
一.简述 ffmpeg是一个非常强大的工具,它可以转换任何格式的媒体文件,并且还可以用自己的AudioFilter以及VideoFilter进行处理和编辑.有了它,我们就可以对媒体文件做很多我们想做的 ...
- FFmpeg命令行工具学习(二):播放媒体文件的工具ffplay
一.简述 ffplay是以FFmpeg框架为基础,外加渲染音视频的库libSDL构建的媒体文件播放器. 在使用ffplay之前必须要安装到系统中,MAC的安装教程为:http://www.cnblog ...
- FFmpeg命令行工具学习(四):FFmpeg 采集设备
在使用 FFmpeg 作为编码器时,可以使用FFmpeg采集本地的音视频采集设备的数据,然后进行编码.封装.传输等操作. 例如,我们可以采集摄像头的图像作为视频,采集麦克风的数据作为音频,然后对采集的 ...
- Bash编程(3) 命令行解析与扩展
$@表示脚本输入的全部参数,在bash脚本中,若$@增加引号("$@"),则包含空格的参数也会被保留,若不增加引号($@),则包含空格的参数会被拆分. 例: # sa脚本内容如下: ...
- [转载]Python命令行参数学习
转载自: http://blog.163.com/weak_time/blog/static/25852809120169333247925/ Python的命令行参数,提供了很多有用的功能,可以方便 ...
随机推荐
- WPF 控件库——可拖动选项卡的TabControl
WPF 控件库系列博文地址: WPF 控件库——仿制Chrome的ColorPicker WPF 控件库——仿制Windows10的进度条 WPF 控件库——轮播控件 WPF 控件库——带有惯性的Sc ...
- solidity_mapping_implementation
solidity 中 mapping 是如何存储的 为了探测 solidity mapping 如何实现,我构造了一个简单的合约. 先说结论,实际上 mapping的访问成本并不比直接访问storag ...
- linux 改变系统时间
date 查看系统时间 date -s 04/05/16 日期设置成2016年4月5日 date -s 15:03:32 日期设置成2016年4月5日15:03:32 上述两步可以直接写成这样一 ...
- 「BZOJ 2434」「NOI 2011」阿狸的打字机「AC自动机」
题意 有一个打字机,支持三种操作: 字符串末尾加一个小写字母 字符串末尾减一个字符 输出这个字符串 经过不超过\(n\)次操作后有\(m\)组询问:\((x,y)\),表示第\(x\)次输出第字符串在 ...
- Django的文件上传以及预览、存储
思路: 文件上传通过前端的input标签,input设置display:none属性. 内容显示需要让前端通过<img>标签读取图片内容,可以通过<label>标签连接< ...
- Java设计模式之单例设计模式 入门实例
一.基础概念 (1).单例设计模式:保证一个类在内存中的对象唯一性. (2).应用场景:数据都存储在配置文件的对象中,多个程序对同一个配置文件的对象进行操作.一个程序要基于另一个程序操作后的结果进行操 ...
- C#/ASP.NET对URL中的中文乱码处理
前言:UTF-8中,一个汉字对应三个字节,GB2312中一个汉字占用两个字节. 不论何种编码,字母数字都不编码,特殊符号编码后占用一个字节. 1.直接在C#后台编码URL参数 引用类库:System. ...
- Axure 原型图
Axure RP 9最新版软件及汉化包下载 https://www.axure.com.cn/78629/ 点击下载 lang语言包放在根目录即可 Axure各种版本注册码 | 最新Axure R ...
- js 删除removeChild与替换replaceChild
<input type="button" value="删除" id="btn" /> <input type=" ...
- springboot整合mybatis,druid,mybatis-generator插件完整版
一 springboot介绍 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程.该框架使用了特定的方式来进行配置,从而使开发人员 ...