<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[二两陈皮的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_38401950</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_38401950]]></copyright><item><title><![CDATA[实战检测Flutter内存泄漏]]></title><link>https://blog.csdn.net/qq_38401950/article/details/123826192</link><guid>https://blog.csdn.net/qq_38401950/article/details/123826192</guid><author>qq_38401950</author><pubDate>Tue, 29 Mar 2022 17:16:49 +0800</pubDate><description><![CDATA[背景
Dart语言有一套自己的内存管理机制，内存泄漏是OOM的元凶为此我们开发者很有必要了解一下Dart的管理以及检测机制，特别是多人协同开发的大型项目如果对内存泄漏不高度重视很容易引发内存溢出。
什么是内存泄漏
内存泄漏（Memory Leak）是指程序中已动态分配的堆内存由于某种原因程序未释放或无法释放，造成系统内存的浪费，导致程序运行速度减慢甚至系统崩溃等严重后果。内存泄漏缺陷具有隐蔽性、积累性的特征，比其他内存非法访问错误更难检测。因为内存泄漏的产生原因是内存块未被释放，属于遗漏型缺陷而不是过错型缺]]></description><category></category></item><item><title><![CDATA[详解Flutter中各种Binding]]></title><link>https://blog.csdn.net/qq_38401950/article/details/123084805</link><guid>https://blog.csdn.net/qq_38401950/article/details/123084805</guid><author>qq_38401950</author><pubDate>Wed, 23 Feb 2022 10:44:07 +0800</pubDate><description><![CDATA[前言
Flutter中所有的运转都是在各种Binding中调度的,也正是这些绑定器的存在彻底解耦了Widget 、 Element 、RenderObject 对 Platform端的依赖，阅读此文需要有一定的Flutter基础，如：Flutter的绘制流程,Flutter与Platform通信原理,Flutter 三棵树各自的职责
WidgetsFlutterBinding
WidgetsFlutterBinding是一个单例存，它继承了GestureBinding, SchedulerBinding, ]]></description><category></category></item><item><title><![CDATA[浅谈Flutter事件分发机制]]></title><link>https://blog.csdn.net/qq_38401950/article/details/123071402</link><guid>https://blog.csdn.net/qq_38401950/article/details/123071402</guid><author>qq_38401950</author><pubDate>Tue, 22 Feb 2022 16:28:15 +0800</pubDate><description><![CDATA[前言
在Flutter中统的事件通过Engine层发送到framework层,GestureBinding负责framework层事件的处理,接下来由GestureBinding为入口来进行分析。
设备事件信号分类
一,Flutter对设备事件定义了touch , mouse , stylus , invertedStylus , unknown几种，其中手机端屏幕触摸产生的事件对应的是touch类型。其他还有手写笔 , 鼠标 等设备。
enum PointerDeviceKind {
  /// A to]]></description><category></category></item><item><title><![CDATA[Flutter中Drat虚拟机服务介绍 --- VmService]]></title><link>https://blog.csdn.net/qq_38401950/article/details/122842199</link><guid>https://blog.csdn.net/qq_38401950/article/details/122842199</guid><author>qq_38401950</author><pubDate>Wed, 09 Feb 2022 14:59:48 +0800</pubDate><description><![CDATA[开篇
在Flutter有三种运行模式分别为release，debug，profile,在debug和profile模式下Flutter Engine会开启一个DartService Isolate，DartService Isolate会创建一个VmService。PS:在debug和profile模式是以JIT模式编译，而release模式是AOT模式编译。通过VM Service就可以获取到运行时的各种信息,DevTools也是基于此Service的可视化工具
Engine中创建VmService
非r]]></description><category></category></item><item><title><![CDATA[Flutter 外接纹理]]></title><link>https://blog.csdn.net/qq_38401950/article/details/122776761</link><guid>https://blog.csdn.net/qq_38401950/article/details/122776761</guid><author>qq_38401950</author><pubDate>Thu, 03 Feb 2022 16:34:47 +0800</pubDate><description><![CDATA[背景
在Flutter开发中需要用到视频播放的功能,Flutter对视频播放的支持并不是很友好所以Google提供了TextureLayer让Flutter端能够使用原生端的渲染,这样我们原生端很多优秀的视频播放组件能够在Flutter程序上使用了
Texture的创建
Texture是Platform端创建的,创建是会生成一个textureId,textureId可以映射获取到Texture

Androaid端FlutterRenderer创建SurfaceTexture

  @Override
  ]]></description><category></category></item><item><title><![CDATA[Flutter中MethodChannel/EventChannel的原理]]></title><link>https://blog.csdn.net/qq_38401950/article/details/122602991</link><guid>https://blog.csdn.net/qq_38401950/article/details/122602991</guid><author>qq_38401950</author><pubDate>Thu, 20 Jan 2022 15:36:58 +0800</pubDate><description><![CDATA[前言
Flutter开发中或多或少都需要和原生端做一些交互，Flutter SDK中也为开发者提供了MethodChannel/EventChannel实现了Flutter调用原生端以及原生端调用Flutter。
MethodChannel
Flutter与原生端方法调用使用的是MethodChannel,它是双向通信Flutter和原生端都可以主动发起
Flutter端调用原生方法

Flutter端调用

const MethodChannel _channel =
    MethodChannel(]]></description><category></category></item><item><title><![CDATA[Flutter渲染优化之RepaintBoundary]]></title><link>https://blog.csdn.net/qq_38401950/article/details/122260853</link><guid>https://blog.csdn.net/qq_38401950/article/details/122260853</guid><author>qq_38401950</author><pubDate>Fri, 31 Dec 2021 18:11:46 +0800</pubDate><description><![CDATA[Flutter渲染优化之RepaintBoundary

]]></description><category></category></item><item><title><![CDATA[初识Flutter中的Layer]]></title><link>https://blog.csdn.net/qq_38401950/article/details/121910010</link><guid>https://blog.csdn.net/qq_38401950/article/details/121910010</guid><author>qq_38401950</author><pubDate>Mon, 13 Dec 2021 17:19:54 +0800</pubDate><description><![CDATA[初识Flutter中的Layer
开篇
接触Flutter开发一段时间后发现自己对Flutter渲染流程重要的一环Layer的认知比较少,虽然Flutter对Widget的封装非常全面了开发者基本上只要面向Widget编程就可以完成绝大部分的功能，但是它作为一个UI框架我们还是需要尽可能的掌握它渲染体系的来龙去脉，因此借此篇文章简单介绍笔者对Layer的探索。
Flutter渲染流程简介
参与UI的构建和显示涉及到两个线程分别是界面线程(UI Thread)和光栅线程(GPU Thread)，UI线程做构建]]></description><category></category></item><item><title><![CDATA[Flutter视图刷新流程分析]]></title><link>https://blog.csdn.net/qq_38401950/article/details/118407575</link><guid>https://blog.csdn.net/qq_38401950/article/details/118407575</guid><author>qq_38401950</author><pubDate>Fri, 02 Jul 2021 18:15:31 +0800</pubDate><description><![CDATA[Flutter视图刷新流程分析
引子
接触过Flutter开发的同学都知道StatefulWidget是可以支持刷新UI的，当在State中调用setState方法时会触发build来重构视图
Flutter渲染中的三棵树
在Flutter的渲染过程中由Widget，Element，RenderObject这个三个元素组成三棵树。Widget控件树，Element元素树，RenderObject渲染树。Widget内部调用createElement()会创建对应的Element，Element内部调用cre]]></description><category></category></item><item><title><![CDATA[HttpURLConnection出现cannot write request body after response has been read]]></title><link>https://blog.csdn.net/qq_38401950/article/details/115239790</link><guid>https://blog.csdn.net/qq_38401950/article/details/115239790</guid><author>qq_38401950</author><pubDate>Fri, 09 Apr 2021 17:10:50 +0800</pubDate><description><![CDATA[HttpURLConnection 中出现java.net.ProtocolException: cannot write request body after response has been read
HttpURLConnection是Android原生自带的网库请求框架，因为轻量级的原因很多SDK会使用到它，最近在项目中发现一个问题

...]]></description><category></category></item></channel></rss>