flutter初见

This commit is contained in:
结发受长生 2019-10-22 01:08:52 +08:00
parent 065883b1cb
commit e90194314c
7 changed files with 28 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,26 @@
---
title: Flutter初见
date: 2019-10-21 22:38:25
tags:
- flutter
- dart
categories:
- flutter
---
### 搭建开发环境
1. 下载解压Flutter的sdk并且将其中的bin目录配置到环境变量
2. Android Studio安装安卓SDK通常启动时如果未安装过都会自动执行下载安装
3. Android Studio安装Flutter的插件
![Android Studio flutter插件](/images/flutter/android-studio_flutter插件.png)
安装flutter插件时会自动安装其依赖的dart插件
4. 在Android Studio的`AVD Manager`当中创建模拟器(需要选择屏幕尺寸以及安卓系统版本,当前系统中不存在的版本需要下载)
如果使用真机调试运行,该步骤可以跳过
执行`flutter doctor`可以检验当前环境当中存在的问题
![flutter doctor](/images/flutter/flutter_doctor.png)
可以看到IDEA也是支持的但是我们不打算使用IDEA来进行开发所以就不在IDEA当中安装插件了
No devices available代表还未启动虚拟机或者连接真机
其余几项都是校验通过的

View File

@ -4,7 +4,7 @@ date: 2019-09-28 12:08:40
tags:
- dart
categories:
- dart
- flutter
---
Flutter是谷歌推出的跨平台移动端开发框架

View File

@ -4,7 +4,7 @@ date: 2019-10-06 21:08:37
tags:
- dart
categories:
- dart
- flutter
---
### 函数相关