File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,19 @@ btrace 3.0 相比 2.0 的优化(iOS 视角):
111111
112112[ @Barney ] ( https://github.com/BarneyZhaoooo ) :` EFQRCode ` 是一个轻量级纯 ` Swift ` 二维码库,支持生成带水印/图标的风格化二维码和图片识别功能。基于 ` CoreGraphics ` 、` CoreImage ` 和 ` ImageIO ` ,全平台支持 ` iOS/macOS/watchOS/tvOS/visionOS ` 。最新 7.0.0 版本重构了 ` API ` ,引入 ` EFQRCodeGenerator ` 和 ` EFQRCodeRecognizer ` 类,支持链式配置,改进 ` Objective-C ` 兼容性。可通过 ` CocoaPods ` 、` Carthage ` 或` SPM ` 集成。
113113
114+ ### 🐕 [ Flutter 里的像素对齐问题,深入理解为什么界面有时候会出现诡异的细线?] ( https://mp.weixin.qq.com/s/eESwYV6tfXP-zeygHObCrw )
115+
116+ [ @david-clang ] ( https://github.com/david-clang ) :Flutter 界面中出现的诡异细线,本质原因是:
117+
118+ 1 . 逻辑像素到物理像素转换出现浮点值(非整数 DPR、布局误差)。
119+ 2 . Skia 默认开启 AAA(Analytic Anti-Aliasing)抗锯齿处理,处理相邻同色元素时各自计算的像素覆盖率总和可能不足 100%(如 40% + 50% = 90%)。
120+ 3 . 未被覆盖的剩余部分(如上例的 10%)会显露背景色,形成半透明的细线。
121+
122+ 解决方案是:
123+
124+ 1 . [ pixel_snap] ( https://pub.dev/packages/pixel_snap ) :提前将逻辑像素换算物理像素,根本上避免转换后出现物理像素不对齐。
125+ 2 . Impeller: MSAA(Multisample Anti-Aliasing)抗锯齿处理,通过在每个像素内部采样多个点来获得更准确的边缘渲染效果,使那些原本因浮点误差产生的“半像素边缘”更加平滑自然,从而视觉上弱化或隐藏了细线问题。
126+
114127## 工具
115128
116129> 开发过程中常用的工具,及一些新工具的介绍
You can’t perform that action at this time.
0 commit comments