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: 29d40f7f6826
Choose a base ref
...
head repository: flutter/flutter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 73546b3b71a7
Choose a head ref
  • 20 commits
  • 57 files changed
  • 12 contributors

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    d7a5db2 View commit details
    Browse the repository at this point in the history
  2. Fix: Gap between prefix and suffix icon and input field in input deco… (

    #152069)
    
    Adjust the gap between TextField prefix/suffix and its content. Results in a small visual change for TextFields that use prefix and/or suffix.
    rkishan516 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    c1b7740 View commit details
    Browse the repository at this point in the history
  3. Kill interactive script job xcdevice observe processes on tool/daem…

    …on shutdown (#157646)
    
    To convince `xcdevice observe` to redirect to stdout it's being launched in an interactive shell `/usr/bin/script -t 0 /dev/null /usr/bin/arch -arm64e xcrun xcdevice observe --usb`
    https://github.com/flutter/flutter/blob/1cc8a07ace699de12fcd31ac9e8fcfa14f1017e2/packages/flutter_tools/lib/src/macos/xcdevice.dart#L261-L263
    
    When the `flutter` command exits, the interactive script process is terminated, but not its jobs `xcdevice observe --usb`.
    
    Instead of `-9` sigterm killing the interactive script, send it a [`SIGHUP`](https://linux.die.net/Bash-Beginners-Guide/sect_12_01.html#sect_12_01_01_02) (signal hangup) during `XCDevice.dispose()`, which will exit its processes.  Add a shutdown hook to ensure `dispose` is run when the process exits.
    
    Fixes #73859
    jmagman authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    b6fef5c View commit details
    Browse the repository at this point in the history
  4. use root directory as the default for rootOverride in Cache.test cons…

    …tructor (#158201)
    
    While doing some hacking on `Cache` in #158081, I noticed that [`Cache.test`](https://github.com/flutter/flutter/blob/de9318275391a6d2f10ae33c576f4113b25fd156/packages/flutter_tools/lib/src/cache.dart#L139) allows the caller to tell Cache to use some given directory as the flutter root (instead of depending on the static global [`Cache.flutterRoot`](https://github.com/flutter/flutter/blob/4f3976a4f2b722d26c3353158dcd26590859dde0/packages/flutter_tools/lib/src/cache.dart#L206)). This has a default value, `/cache`. However, `/cache` is an unintuitive name for the root directory of a Flutter installation.
    
    This led to confusion when updating some tests. I wanted to create `/bin/cache/engine-dart-sdk.stamp` for tests, but in reality I needed to create `/cache/bin/cache/engine-dart-sdk.stamp`.
    
    This PR changes this default to the current directory of the file system (which I'm guessing is `/` for all intents and purposes). 
    
    <details>
    
    <summary> Pre-launch checklist </summary> 
    
    </details>
    andrewkolos authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    8d3cca4 View commit details
    Browse the repository at this point in the history
  5. Add test for raw_scrollbar.2.dart (#158161)

    Contributes to #130459
    
    It adds a test for
    - `examples/api/lib/widgets/scrollbar/raw_scrollbar.2.dart`
    ValentinVignal authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    ffe81f0 View commit details
    Browse the repository at this point in the history
  6. Increase subsharding for Linux tool_integration_tests (#158196)

    I've noticed Linux tool_integration_tests 5_5 has come very close to timing out. See #155317 for more context, I am not 100% confident that increasing the subsharding here will help given that we just very recently increased subsharding from 4 to 5, but the results could be interesting regardless.
    
    <details>
    
    <summary> Pre-launch checklist </summary> 
    
    </details>
    andrewkolos authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    0401c37 View commit details
    Browse the repository at this point in the history
  7. Marks Mac_benchmark animated_complex_opacity_perf_macos__e2e_summary …

    …to be flaky (#157424)
    
    <!-- meta-tags: To be used by the automation script only, DO NOT MODIFY.
    {
      "name": "Mac_benchmark animated_complex_opacity_perf_macos__e2e_summary"
    }
    -->
    Issue link: #157423
    fluttergithubbot authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    255a941 View commit details
    Browse the repository at this point in the history
  8. Factor out "shaker" class (#157748)

    I saw that there was a private `_Shaker` class in input_decorator.dart that does the exact same thing as the [MatrixTransition](https://main-api.flutter.dev/flutter/widgets/MatrixTransition-class.html) API.
    
    ("hide whitespace" for tiny diffs!)
    nate-thegrate authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    b46fb32 View commit details
    Browse the repository at this point in the history
  9. Remove observatory related TODO that is already fixed. (#158205)

    Description intentionally left blank :)
    matanlurey authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    0b6f997 View commit details
    Browse the repository at this point in the history
  10. Remove unused enableObservatory flag. (#158202)

    I checked google3 as well and couldn't find any reference.
    matanlurey authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    c6dea5e View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Forward fix CupertinoDynamicColor by adding toARGB32(). (#158145)

    Unblocks landing flutter/engine#56329.
    
    @jtmcdole monorepo can't come soon enough...
    matanlurey authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    7a6c81a View commit details
    Browse the repository at this point in the history
  2. Roll Flutter Engine from e5e06c97c33c to a3741d6248b7 (14 revisions) (#…

    …158218)
    
    flutter/engine@e5e06c9...a3741d6
    
    2024-11-05 [email protected] Increase timeouts for Linux Fuchsia and Linux Web Framework Tests builders (flutter/engine#56387)
    2024-11-05 [email protected] iOS: Use standard Obj-C cflags for ios_test_flutter (flutter/engine#56384)
    2024-11-05 [email protected] Remove unnecessary method for getting engine switches (command line). (flutter/engine#56265)
    2024-11-05 [email protected] Remove FlScrollingViewDelegate (flutter/engine#56270)
    2024-11-05 [email protected] fml: delete scoped_nsobject.h,mm (flutter/engine#56382)
    2024-11-05 [email protected] Roll Skia from b3be9cb59fe8 to 82175b411c80 (2 revisions) (flutter/engine#56383)
    2024-11-05 [email protected] [Impeller] Delete any remaining GL objects during destruction of the ReactorGLES (flutter/engine#56361)
    2024-11-05 [email protected] [web] Switch all fonts to WOFF2 (non-split) (flutter/engine#56035)
    2024-11-05 [email protected] [Impeller] exploit content context options' perfect hash function. (flutter/engine#56360)
    2024-11-05 [email protected] Roll Skia from 7989f782dbf4 to b3be9cb59fe8 (6 revisions) (flutter/engine#56380)
    2024-11-05 [email protected] Roll Dart SDK from b39c729740eb to 3e840340c412 (1 revision) (flutter/engine#56377)
    2024-11-05 [email protected] [Impeller] match Skia's old VMA default block size. (flutter/engine#56368)
    2024-11-05 [email protected] iOS: Refactor ShellTestPlatformViewMetal (flutter/engine#56370)
    2024-11-05 [email protected] Roll Fuchsia Linux SDK from amgHXcqtplha8LuI_... to z1otZzn3yKuGnu1st... (flutter/engine#56374)
    
    Also rolling transitive DEPS:
      fuchsia/sdk/core/linux-amd64 from amgHXcqtplha to z1otZzn3yKuG
    
    If this roll has caused a breakage, revert this CL and stop the roller
    using the controls here:
    https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
    Please CC [email protected],[email protected] on the revert to ensure that a human
    is aware of the problem.
    
    To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
    
    To report a problem with the AutoRoller itself, please file a bug:
    https://issues.skia.org/issues/new?component=1389291&template=1850622
    
    Documentation for the AutoRoller is here:
    https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
    engine-flutter-autoroll authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    7edcacb View commit details
    Browse the repository at this point in the history
  3. fix: ensure draggable_scrollable_sheet respects shouldCloseOnMinExten… (

    #156338)
    
    This PR fixes the `shouldCloseOnMinExtent` flag in `draggable_scrollable_sheet.dart`.
    
    *The `shouldCloseOnMinExtent` flag was not functioning correctly in the `DraggableScrollableSheet` widget. This PR ensures that the flag is properly handled, preventing the sheet from closing when it reaches the minimum extent if the flag is set to false. Before/after screenshots are not applicable for this change.*
    
    In the code sample below, before my fix, the sheet would close when scrolled down. After my fix, it behaves as expected by respecting the `shouldCloseOnMinExtent` parameter.
    
    ### Code Sample
    ```dart
    
    import 'package:flutter/material.dart';
    
    Future<void> main() async {
      runApp(const MaterialApp(
        home: Home(),
      ));
    }
    
    class Home extends StatelessWidget {
      const Home({
        super.key,
      });
    
      @OverRide
      Widget build(BuildContext context) => Scaffold(
            body: Center(
              child: FilledButton(
                onPressed: () async => showModalBottomSheet(
                  context: context,
                  isScrollControlled: true,
                  isDismissible: false,
                  builder: (context) => DraggableScrollableSheet(
                    expand: false,
                    maxChildSize: 0.9,
                    minChildSize: 0.25,
                    initialChildSize: 0.5,
                    shouldCloseOnMinExtent: false,
                    builder: (context, scrollController) => Navigator(
                      onGenerateRoute: (settings) => MaterialPageRoute(
                        settings: settings,
                        builder: (context) => ListView.builder(
                          controller: scrollController,
                          itemExtent: 100,
                          itemCount: 100,
                          itemBuilder: (context, index) => Center(
                            child: Text('$index'),
                          ),
                        ),
                      ),
                    ),
                  ),
                ),
                child: const Text('Open sheet'),
              ),
            ),
          );
    }
    ```
    kirya355 authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    7a57b69 View commit details
    Browse the repository at this point in the history
  4. Restore skipped iOS test by looping over FakeAsync elapse. (#158204)

    Closes #60675.
    
    From what I can tell `FakeAsync` wasn't necessary to making this be testable (or at least it isn't anymore?)
    matanlurey authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    2f7a1aa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dff1916 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5a3fd44 View commit details
    Browse the repository at this point in the history
  7. Cleanup MenuAnchor and Improve DropdownMenu tests readability (#158175)

    ## Description
    
    This PR fixes some typos on `MenuAnchor` and improve the readability of a `DropdownMenu` test utility function.
    
    @justinmc I'm still considering creating a test utils file for DropdownMenu but there are few utilities and I'm worried that helper functions in utils file will cripple completion results (not a big deal because it is just for people working on the framework) but I think this should be used carefully. For instance the function `getButtonMaterial` would have to be renamed to something less generic if exposed more broadly (`getMenuItemButtonMaterial` for instance).
    bleroux authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    66e8f53 View commit details
    Browse the repository at this point in the history
  8. Fix RawScrollbar examples and desktop test (#158237)

    ## Description
    
    Fix the formatting of some `RawScrollbar` examples.
    Fix and rename one test file (name without `_test` suffix).
    bleroux authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    22a7afd View commit details
    Browse the repository at this point in the history
  9. Make flutter_tools use newest package:{native_assets_builder,native_a…

    …ssets_cli,native_toolchain_c} (#158214)
    
    Almost all of the code is just adopting to changes to the APIs of
    `package:native_assets_builder`, `package:native_assets_cli` and
    `package:native_toolchain_c`
    
    There's only two semantic changes
    
    * Removes a test that checks for a verification error if a build hook
    produces a static library if the preferred linking mode is dynamic:
    => The test is written in a very hacky way. By monkey patching the build
    config.json that flutter build actually made. This monkey patching
    relies on package:cli_config which is now no longer used.
    => The actual code that checks for this mismatch lives in
    dart-lang/native repository and is tested there. So there's really no
    need to duplicate that.
    
    * The `package:native_assets_builder` no longer knows about code assets.
    This is something a user of that package (e.g. flutter tools) adds. Now
    the dry-run functionality will invoke build hooks who produce code
    assets without an architecture.
    => The `package:native_assets_builder` used to expand such a code asset
    to N different code assets (one for each supported architecture)
    => This logic was now moved to flutter tools. => In the near future
    we're going to this dry-run complexity, which will then also get rid of
    this uglyness (of expanding to all archs of an OS).
    mkustermann authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    3a83e43 View commit details
    Browse the repository at this point in the history
  10. Add test for image.loading_builder.0.dart (#158248)

    Contributes to #130459
    
    It adds a test for
    - `examples/api/lib/widgets/image/image.loading_builder.0.dart`
    ValentinVignal authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    73546b3 View commit details
    Browse the repository at this point in the history
Loading