# 前言

为更好的学习Flutter，特地将Flutter的学习从零整理及总结成本书，方便大家的快速学习！

其他权威网站：[Flutter中文网](https://flutterchina.club/)、[Flutter实战书籍](https://book.flutterchina.club)

## 主流跨平台语言对比

主流跨平台语言(Flutter和RN、Weex)之间的对比：

![主流跨平台语言对比](https://3320264277-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVSU1YOqp0suas4rOgR%2F-LVmK6J0OWPnjWfRJhIf%2F-LVmK80dIOI3ZTrgHTb_%2F%E4%B8%BB%E6%B5%81%E8%B7%A8%E5%B9%B3%E5%8F%B0%E8%AF%AD%E8%A8%80%E5%AF%B9%E6%AF%94.jpg?generation=1547032635475282\&alt=media)

* 渲染性能

和RN和Weex将javascript转化为原生控件渲染不同，Flutter完全挣脱了原生控件的“束缚”，如下图所示，Flutter使用了分层架构，分为Framework和Engine两个部分，其中Framework层提供各种基础组件库，包括各种Widget，动画等，Engine层则完全由C和C++实现，使用Skia进行渲染（对！就是chrome用的那个图形渲染框架），官方宣称可以达到原生app的渲染性能。

![Flutter结构](https://3320264277-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVSU1YOqp0suas4rOgR%2F-LVmK6J0OWPnjWfRJhIf%2F-LVmK80fSYlDAsqF2OEx%2FFlutter%E7%BB%93%E6%9E%84.jpg?generation=1547032634695252\&alt=media)

* Google新操作系统Fuchsia(被认为是Android的继任者)也使用Flutter作为其UI框架，今后的发展不可限量。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devbook.site/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
