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的命令行参数,提供了很多有用的功能,可以方便 ...
随机推荐
- SQL Server 时间类型转换函数
cast ( expression as data_type(length))convert ( data_type (length), expression, style) //如果未指定 leng ...
- Jmeter接口测试-完成任务API
完成任务 PUT /api/tasks/:task_id 可以完成id为task_id的task,如果动作成功,该接口返回的task的done字段会变成true. 完成任务的api接口测试很简单,因为 ...
- 如何看待那些不能重现的bug?
在我们日常测试活动中,经常会发现一些bug,但是这些bug可能就是昙花一现,再也无法(或者很难)重现出来,内心灰常崩溃.那到底有哪些方面可能会导致这类的缺陷发生呢? 我以自己工作中所遇到的给出一些自己 ...
- 关于AJAX与JSON的杂记
一.当网页需要有多个XMLHttpRequest对象时,可以使用Callback 函数,callback 函数是一种以参数形式传递给另一个函数的函数. <html> <head> ...
- linux 系统的ssh服务
ssh服务由服务端软件Openssh和客户端(常见的有ssh,SecureCRT,putty,xshell)组成,ssh服务默认使用22端口提供服务,它有两个不兼容的ssh协议版本,分别是1.x和2. ...
- NetCore服务虚拟化01(集群组件Sodao.Core.Grpc)
一. 起始 去年.NetCore2.0的发布,公司决定新项目采用.NetCore开发,当作试验.但是问题在于当前公司内部使用的RPC服务为Thrift v0.9 + zookeeper版本,经过个性化 ...
- 【大数据之数据仓库】安装部署GreenPlum集群
本篇将向大家介绍如何快捷的安装部署GreenPlum测试集群,大家可以跟着我一块儿实践一把^_^ 1.主机资源 申请2台网易云主机,操作系统必须是RedHat或者CentOS,配置尽量高一点.如果是s ...
- kubernetes 1.3管中窥豹- RS(Replica Sets):the next-generation Replication Controller
前言 kubernates 1.3出了几个新的概念,其中包括deployments,Replica Sets,并且官网称之为是the next-generation Replication Contr ...
- kali linux之DNS,NTP放大攻击
DNS放大: 产生大流量的攻击方法-----单机的带宽优势,巨大的单机数量形成的流量汇聚,利用协议特性实现放大效果的流量 DNS协议放大效果----查询请求流量小,但响应流量可能非常巨大(dig AN ...
- 深度剖析MQTT协议的整个通信流程
http://www.elecfans.com/d/587483.html MQTT,目前物联网的最主要的协议,基本所有收费的云平台都是基于MQTT协议,比如机智云,和所有的开放云平台比如中国移动的o ...