Add an adjustment to currentLineWidth comparisons when pushing greedy line breaks (#21356)
This is similar to the workaround used for https://github.com/flutter/flutter/issues/30347 The Minikin line breaker inserts greedy breaks based on a comparison of postBreak width and currentLineWidth. currentLineWidth is provided by the framework based on previous calls to Layout::measureText. That calculation may not exactly match the calculation of postBreak. This change ensures that breaks are only added if the difference between postBreak and currentLineWidth is significant. Fixes https://github.com/flutter/flutter/issues/65419
Showing
想要评论请 注册 或 登录