Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/flutter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3bb2e5948e7a
Choose a base ref
...
head repository: flutter/flutter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ca88730a0c1
Choose a head ref
  • 11 commits
  • 26 files changed
  • 8 contributors

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    b8d01ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    505a515 View commit details
    Browse the repository at this point in the history
  3. Skip test temporarily until headingLevel is added in engine (issue 41… (

    #135077)
    
    The purpose of this PR is to temporarily skip one integration test that is blocking the changes indicated below:
    
    (This change adds a new property in Semantics widget that would take an integer corresponding to the heading levels defined by the ARIA heading role. This is necessary in order to get proper accessibility and usability in a website for users who rely on screen readers and other assistive technologies.)
    
    Issue fixed by this PR:
    #97894
    
    Engine part:
    flutter/engine#41435 
    
    Framework part:
    #125771
    victorgalo authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    b9afa60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d98d842 View commit details
    Browse the repository at this point in the history
  5. Expose build mode in environment of asset transformer processes (#144752

    )
    
    In service of #143348
    
    When invoking a package to transform an asset, we set `FLUTTER_BUILD_MODE` to the CLI name of the build mode being used. Inspired by #101077 (comment):
    
    > Do transformers know whether they get executed in debug or release mode? I kinda imagine that being useful. Ex: There's a transformer that optimizes the file size of images. Depending on the amount and size of the images, that could take a significant amount of time. Therefore, I might want to only execute it in release builds.
    
    Note for the reviewer: the interesting part of this change can be found in the commit [set environment variable to build mode when running asset transformer�](579912d). The rest of the change is updating call sites with a new argument.
    andrewkolos authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    83fad74 View commit details
    Browse the repository at this point in the history
  6. Reverts "Expose build mode in environment of asset transformer proces…

    …ses (#144752)" (#144957)
    
    Reverts: #144752
    Initiated by: andrewkolos
    Reason for reverting: compilation issue has turned the tree red
    Original PR Author: andrewkolos
    
    Reviewed By: {christopherfujino}
    
    This change reverts the following previous change:
    In service of #143348
    
    When invoking a package to transform an asset, we set `FLUTTER_BUILD_MODE` to the CLI name of the build mode being used. Inspired by #101077 (comment):
    
    > Do transformers know whether they get executed in debug or release mode? I kinda imagine that being useful. Ex: There's a transformer that optimizes the file size of images. Depending on the amount and size of the images, that could take a significant amount of time. Therefore, I might want to only execute it in release builds.
    
    Note for the reviewer: the interesting part of this change can be found in the commit [set environment variable to build mode when running asset transformer…](579912d). The rest of the change is updating call sites with a new argument.
    auto-submit[bot] authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    187ec75 View commit details
    Browse the repository at this point in the history
  7. Refactoring if chains into switch statements (#144905)

    Based on issue #144903, this PR aims to bring the codebase more in line with the [Flutter repo style guide](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-using-if-chains-or--or--with-enum-values):
    
    > #### Avoid using `if` chains or `?:` or `==` with enum values
    
    <br>
    
    This change unfortunately increases the total line length, but it also improves readability.
    nate-thegrate authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    26e379e View commit details
    Browse the repository at this point in the history
  8. Fail tests on exceptions raised after test completed (#144706)

    A test was failing silently because of this (see
    #144353 and fixed in
    #144709). The failure went
    undetected for months. Ideally, this should have been a regular
    non-silent failure. This change makes that so. `package:test` can
    properly handle reported exceptions outside of test cases. With this
    change, the test fails as follows:
    
    ```
    00:03 +82: Smoke test material/color_scheme/dynamic_content_color.0.dart
    ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following assertion was thrown running a test (but after the test had completed):
    setState() called after dispose(): _DynamicColorExampleState#1cd37(lifecycle state: defunct, not
    mounted)
    This error happens if you call setState() on a State object for a widget that no longer appears in
    the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error
    can occur when code calls setState() from a timer or an animation callback.
    The preferred solution is to cancel the timer or stop listening to the animation in the dispose()
    callback. Another solution is to check the "mounted" property of this object before calling
    setState() to ensure the object is still in the tree.
    This error might indicate a memory leak if setState() is being called because another object is
    retaining a reference to this State object after it has been removed from the tree. To avoid memory
    leaks, consider breaking the reference to this object during dispose().
    
    When the exception was thrown, this was the stack:
    #0      State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1167:9)
    #1      State.setState (package:flutter/src/widgets/framework.dart:1202:6)
    #2      _DynamicColorExampleState._updateImage (package:flutter_api_samples/material/color_scheme/dynamic_content_color.0.dart:191:5)
    <asynchronous suspension>
    ════════════════════════════════════════════════════════════════════════════════════════════════════
    00:03 +81 -1: Smoke test material/context_menu/context_menu_controller.0.dart
    00:03 +81 -1: Smoke test material/color_scheme/dynamic_content_color.0.dart [E]
      Test failed. See exception logs above.
      The test description was: Smoke test material/color_scheme/dynamic_content_color.0.dart
      
      This test failed after it had already completed.
      Make sure to use a matching library which informs the test runner
      of pending async work.
    ```
    goderbauer authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    91cccc8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e66811a View commit details
    Browse the repository at this point in the history
  10. Reverts "Fail tests on exceptions raised after test completed (#144706)…

    …" (#144970)
    
    Reverts: #144706
    Initiated by: gspencergoog
    Reason for reverting: This has broken the tree because some tests are still failing post completion. This particular one looks like it might have to do with a gold image not existing.
    Original PR Author: goderbauer
    
    Reviewed By: {Piinks}
    
    This change reverts the following previous change:
    A test was failing silently because of this (see #144353 and fixed in #144709). The failure went undetected for months. Ideally, this should have been a regular non-silent failure. This change makes that so. `package:test` can properly handle reported exceptions outside of test cases. With this change, the test fails as follows:
    
    ```
    00:03 +82: Smoke test material/color_scheme/dynamic_content_color.0.dart
    ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following assertion was thrown running a test (but after the test had completed):
    setState() called after dispose(): _DynamicColorExampleState#1cd37(lifecycle state: defunct, not
    mounted)
    This error happens if you call setState() on a State object for a widget that no longer appears in
    the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error
    can occur when code calls setState() from a timer or an animation callback.
    The preferred solution is to cancel the timer or stop listening to the animation in the dispose()
    callback. Another solution is to check the "mounted" property of this object before calling
    setState() to ensure the object is still in the tree.
    This error might indicate a memory leak if setState() is being called because another object is
    retaining a reference to this State object after it has been removed from the tree. To avoid memory
    leaks, consider breaking the reference to this object during dispose().
    
    When the exception was thrown, this was the stack:
    #0      State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1167:9)
    #1      State.setState (package:flutter/src/widgets/framework.dart:1202:6)
    #2      _DynamicColorExampleState._updateImage (package:flutter_api_samples/material/color_scheme/dynamic_content_color.0.dart:191:5)
    <asynchronous suspension>
    ════════════════════════════════════════════════════════════════════════════════════════════════════
    00:03 +81 -1: Smoke test material/context_menu/context_menu_controller.0.dart
    00:03 +81 -1: Smoke test material/color_scheme/dynamic_content_color.0.dart [E]
      Test failed. See exception logs above.
      The test description was: Smoke test material/color_scheme/dynamic_content_color.0.dart
      
      This test failed after it had already completed.
      Make sure to use a matching library which informs the test runner
      of pending async work.
    ```
    auto-submit[bot] authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    49f45d2 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Update integration tests regexes. (#144847)

    Some tests are assuming the flutter sdk code is being checked out to flutter and checking the code to a different repository makes them fail.
    
    Bug: #144487
    godofredoc authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    1ca8873 View commit details
    Browse the repository at this point in the history
Loading