提交 c09af904 编写于 作者: L linusflow

完善0.6.0版本的README

上级 ac790cd7
# DoKit Flutter版
内测版本,目前提供了日志、method channel信息、路由信息、网络抓包、帧率、设备与内存信息查看、控件信息查看功能.
内测版本,目前提供了日志、method channel信息、路由信息、网络抓包、帧率、设备与内存信息查看、控件信息查看、颜色拾取、启动耗时、查看源码、查看widget的build链以及对齐标尺的功能.
## 支持flutter版本
1.17.5<=version<=1.22.4,其余版本未做过兼容性测试
......@@ -13,7 +13,7 @@
```
dependencies:
dokit: ^0.2.12
dokit: ^0.6.0
```
在main函数入口初始化。 DoKit使用runZone的方式进行日志捕获,方法通道的捕获,如果你的app需要使用同样的方式会有冲突。
......@@ -136,11 +136,32 @@ releaseAction | Function | release模式下执行该函数,该值为空则会
**注:该功能通过VMService获取数据,release模式下无法使用。flutter版本号需要flutter attach后才可获取**
### 控件检查
<img src="https://pt-starimg.didistatic.com/static/starimg/img/qXec9UMCfi1619673904927.png" width="300px" />
<img src="https://pt-starimg.didistatic.com/static/starimg/img/NEyzV9xUb51609765785021.jpg" width="300px" />
查看当前页面上的控件信息,包含位置、大小、源码信息等。
查看当前页面上的控件信息,包含位置、大小、源码信息、对齐标尺和查看build链等。
**注:源码信息只有在debug模式下才可获取到。同路由功能,在存在Overlay的情况下功能会异常**
### 颜色拾取
<img src="https://pt-starimg.didistatic.com/static/starimg/img/4MYRNqqcZh1619673900891.png" width="300px" />
查看当前页面任何位置对应的像素点的RGBA颜色值,方便UI的调试和获取像素点的颜色
### Widget层级
<img src="https://pt-starimg.didistatic.com/static/starimg/img/GmjvVDp4Ye1619673908393.png" width="300px" />
<img src="https://pt-starimg.didistatic.com/static/starimg/img/sGd73y7uoc1619673910771.png" width="300px" />
查看当前选中widget的树层级,以及它renderObject的详细build链等信息
### 页面源码查看
<img src="https://pt-starimg.didistatic.com/static/starimg/img/YUUyL2AlhK1619673913774.png" width="300px" />
查看当前所在页面的源代码,支持语法高亮显示
### 页面启动耗时
<img src="https://pt-starimg.didistatic.com/static/starimg/img/gDkBh4a87P1619673916288.png" width="300px" />
<img src="https://pt-starimg.didistatic.com/static/starimg/img/z1wWlYqZDg1619674872051.png" width="300px" />
获取到页面的启动耗时
**注:页面启动耗时信息只有在profile或release模式下才有意义**
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册