admin 管理员组

文章数量: 887017

flutter大家都知道是google推出的跨平台UI平台,主要用于android/ios的界面开发,其也兼容windows linux mac等平台。

本篇记录搭建windows桌面平台遇到的问题和解决方案。该项目地址为:https://github/google/flutter-desktop-embedding

多搞事情,总是会有所收获的,吐槽一下,国内访问谷歌代码服务器会失败的问题实在让人蛋疼。

首先下载需要的项目flutter和flutter-desktop-embedding。

即打开cmd命令行程序运行下面命令(要准备好windows版本的git

D:
mkdir flutter
cd flutter
git clone https://github/google/flutter-desktop-embedding.git
git clone https://github/flutter/flutter.git

创建工程目录结构为:

your_path\flutter

                \Flutter-desktop-embedding

为何要建立这种结构目录?可以在工程的README.md里面看到介绍

The tooling and build infrastructure for this project requires that you have

a Flutter tree in the same parent directory as the clone of this project:

```

<parent dir>

  ├─ flutter (from https://github/flutter/flutter)

  └─ flutter-desktop-embedding (from https://github/google/flutter-desktop-embedding)

```

其次编译工程需要用到ninja和gn工具,这两个是google自己打造的工程管理工具,跟cmake的

本文标签: 平台 Desktop Flutter Windows embedding