blog
blog copied to clipboard
flutter 实际开发中遇到的一些坑
1. window.physicalSize
window.physicalSize 不要运用在build函数中 在run debug模式下没有问题 但是在profile模式下会无法显示widget,并会导致卡顿和影响到其他组件
2. CustomPaint repaint
CustomPaint 重复渲染问题 问题类似 https://www.jianshu.com/p/bb2a856a2741 通过RepaintBoundary包裹CustomPaint 解决问题
3.animController.animateTo
animController.animateTo 目标值为当前值时 代码无法往下进行 具体原因后续查看flutter issue