1. 20 Jan, 2024 1 commit
    • LongCatIsLooong's avatar
      Remove more textScaleFactor references (#141816) · 5892a003
      LongCatIsLooong authored
      Remove more `textScaleFactor` references from flutter/flutter.  
      
      - Some changes are related to label scaling: the padding EdgeInsets values of some chip subclasses scale linearly between predetermined "max" padding values and "min" padding values. Before they scale with the `textScaleFactor` scalar, now they scale with the font size and are still capped at the original "max" and "min" values.
      - The rest of them are tests or size heuristics that depend on `textScaleFactor`, these are replaced by an effective text scale factor computed using a default font size (which is determined in a pretty random fashion, but it will only make a difference on Android 14+).
      
      No API changes in this batch. There are still some references left that I intend to remove in a different batch that would introduce API changes.
      5892a003
  2. 15 Dec, 2023 1 commit
  3. 10 Nov, 2023 1 commit
  4. 21 Sep, 2023 1 commit
  5. 07 Aug, 2023 2 commits
  6. 17 Jul, 2023 2 commits
  7. 28 Jun, 2023 1 commit
  8. 26 May, 2023 1 commit
    • LongCatIsLooong's avatar
      Move shared inline widget logic to `RenderInlineWidgetContainerDefaults` (#127308) · b5df180a
      LongCatIsLooong authored
      - Added `InlineWidgetContainerDefaults` for deduping inline widget code
      - Added a helper function `WidgetSpan.extractFromInlineSpan` for extracting `WidgetSpan`s and automatically applying text scaling (at widget level)
      - Removed `TextPainter.inlinePlaceholderScales`. I'm going to deprecate the `scale` argument in `TextPainter.addPlaceholder` next, as scaling is now done at the widget level.
      - Added runtime check and comments to make sure nobody is extending `PlaceholderSpan` directly (unfortunately we can't remove `PlaceholderSpan`  without moving RenderEditable and RenderParagraph to the widgets library).
      b5df180a
  9. 24 May, 2023 1 commit
    • LongCatIsLooong's avatar
      Improve `TextPainter.layout` caching (#118128) · 62e78bf1
      LongCatIsLooong authored
      Improves `TextPainter.layout` caching when only the input constraints change: 
      - removes the double layout calls in `TextPainter._layoutParagraph`: now double layout is only needed when `TextAlign` is not left, and the input `maxWidth == double.infinity`.  
      - skip calls to `ui.Paragraph.layout` when it's guaranteed that there's no soft line breaks before/after the layout call.
      
      This doesn't introduce new APIs but may slightly shift text rendered on screen.
      This reduces the number of `layout` calls but since shaping results are already cached so it only skips the relatively cheap line-breaking process when possible.
      
      528 scuba failures but all of them seem reasonable.
      62e78bf1
  10. 21 Apr, 2023 1 commit
  11. 24 Mar, 2023 1 commit
  12. 09 Mar, 2023 1 commit
  13. 06 Mar, 2023 2 commits
  14. 01 Mar, 2023 1 commit
    • chunhtai's avatar
      Issues/111931 reland (#121576) · 978d9b55
      chunhtai authored
      * Revert "Revert "Fix text.rich to merge widget span (#113461)" (#121562)"
      
      This reverts commit c8d80163.
      
      * Fixes tag to not pollute cached semantics configuration in rendering object
      978d9b55
  15. 28 Feb, 2023 1 commit
  16. 27 Feb, 2023 1 commit
  17. 23 Feb, 2023 1 commit
  18. 02 Feb, 2023 1 commit
  19. 31 Jan, 2023 1 commit
  20. 21 Oct, 2022 1 commit
  21. 06 Sep, 2022 1 commit
  22. 26 May, 2022 1 commit
  23. 24 Mar, 2022 1 commit
  24. 08 Oct, 2021 3 commits
  25. 11 Sep, 2021 1 commit
  26. 09 Aug, 2021 1 commit
  27. 28 Apr, 2021 1 commit
  28. 21 Apr, 2021 1 commit
  29. 14 Apr, 2021 1 commit
  30. 07 Apr, 2021 1 commit
  31. 04 Mar, 2021 2 commits
  32. 13 Nov, 2020 1 commit
  33. 12 Nov, 2020 1 commit
  34. 09 Nov, 2020 1 commit