setState
2022-01-27 17:50:52 1 举报
flutter的setState调用和界面刷新流程
作者其他创作
大纲/内容
SchedulerBinding.ensureVisualUpdate()
buildOwner!.finalizeTree()
_element.markNeedsBuild()
RendererBinding.drawFrame
结束
window.scheduleFrame()
Vsyn到来
owner!.scheduleBuildFor(this)
_dirtyElements[index].rebuild()
_dirtyElements.add(element)
BuildOwner.onBuildScheduled!()
WidgetsBinding._handleBuildScheduled
buildOwner!.buildScope(renderViewElement!)
WidgetBinding.drawFrame
SchedulerBinding.scheduleFrame()
setState
Element.performBuild
Widget.build
Element.updateChild
0 条评论
下一页