1. 03 May, 2023 1 commit
    • LongCatIsLooong's avatar
      Add `InlineSpan.visitDirectChildren` (#125656) · f704c689
      LongCatIsLooong authored
      I'd like to find out the `fontSize` of a `PlaceholderSpan`, and currently there doesn't seem to be a way to do `TextStyle` cascading in the framework:
      
       `InlineSpan.visitChildren` traverses the entire `InlineSpan` tree using a preorder traversal, and nodes that don't have "content" will be skipped (https://master-api.flutter.dev/flutter/painting/InlineSpan/visitChildren.html): 
      
      > Walks this [InlineSpan](https://master-api.flutter.dev/flutter/painting/InlineSpan-class.html) and any descendants in pre-order and calls visitor for each span that has content.
      
      which makes it impossible to do `TextStyle` cascading in the framework: 
      - `InlineSpan`s with a non-null `TextStyle` but has no content will be skipped
      - `visitChildren` doesn't directly expose the hierarchy, it only gives information about the flattened tree.
      
      This doesn't look like a breaking change, most internal customers are extending `WidgetSpan` which has a concrete implementation of the new method.
      
      Alternatively I could create a fake `ui.ParagraphBuilder` and record the `ui.TextStyle` at the top of the stack when `addPlaceholder` is called. But `ui.TextStyle` properties are not exposed to the framework.
      f704c689
  2. 24 Jun, 2022 1 commit
  3. 20 May, 2022 1 commit
  4. 03 Feb, 2022 1 commit
  5. 08 Oct, 2021 3 commits
  6. 30 Jul, 2021 1 commit
  7. 15 Jul, 2021 1 commit
  8. 14 Jul, 2021 3 commits
  9. 13 Jul, 2021 2 commits
  10. 23 Apr, 2021 1 commit
  11. 25 Mar, 2021 1 commit
  12. 11 Feb, 2021 1 commit
  13. 02 Feb, 2021 1 commit
    • Sam Rawlins's avatar
      Remove "unnecessary" imports. (#75198) · 11609d11
      Sam Rawlins authored
      In each library where an import is removed, the library uses some elements
      provided by the import, BUT there is another import which provides all of the
      same elements, and at least one more which the library uses.
      
      In this change, we remove the imports which can be simply removed in favor of
      the other already present imports.
      
      See https://github.com/dart-lang/sdk/issues/44569 for more information.
      11609d11
  14. 06 Oct, 2020 1 commit
  15. 19 Aug, 2020 3 commits
  16. 11 Jun, 2020 1 commit
  17. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  18. 28 Oct, 2019 1 commit
  19. 09 Oct, 2019 1 commit
  20. 02 Oct, 2019 1 commit
  21. 30 Sep, 2019 1 commit
  22. 24 Sep, 2019 1 commit
  23. 07 Jun, 2019 2 commits
  24. 06 Jun, 2019 1 commit
  25. 05 Jun, 2019 1 commit
  26. 04 Jun, 2019 1 commit
    • Gary Qian's avatar
      Text inline widgets, TextSpan rework (#33794) · 86862c1e
      Gary Qian authored
      * Merge in changes for inline widgets
      
      * Make analyzer happy, fix tests
      
      * Fix analyzer
      
      * Add missing doc
      
      * Docs on RichText
      
      * Fix analyzer some more
      
      * Remove whitespace at end of line
      
      * Update goldens
      
      * Text fixes
      
      * Analyzer
      86862c1e
  27. 10 Apr, 2019 1 commit
  28. 12 Sep, 2018 1 commit
  29. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  30. 02 Aug, 2018 1 commit
  31. 27 Jul, 2018 1 commit
  32. 23 Jul, 2018 1 commit