1. 13 Feb, 2024 15 commits
    • Taha Tesser's avatar
      Introduce `avatarBoxConstraints` & `deleteIconBoxConstraints` for the chips (#143302) · ccf42dde
      Taha Tesser authored
      fixes [Chip widget's avatar padding changing if label text is more than 1 line](https://github.com/flutter/flutter/issues/136892)
      
      ### Code sample
      
      <details>
      <summary>expand to view the code sample</summary> 
      
      ```dart
      import 'package:flutter/material.dart';
      
      List<String> strings = [
        'hello good morning',
        'hello good morning hello good morning',
        'hello good morning hello good morning hello good morning'
      ];
      
      void main() => runApp(const MyApp());
      
      class MyApp extends StatelessWidget {
        const MyApp({super.key});
      
        @override
        Widget build(BuildContext context) {
          return MaterialApp(
            debugShowCheckedModeBanner: false,
            home: Scaffold(
              body: Center(
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                  children: [
                    Column(
                      mainAxisSize: MainAxisSize.min,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        const Text(
                            'avatarBoxConstraints: null \ndeleteIconBoxConstraints: null',
                            textAlign: TextAlign.center),
                        for (String string in strings)
                          Padding(
                            padding: const EdgeInsets.all(8.0),
                            child: RawChip(
                              label: Container(
                                width: 150,
                                color: Colors.amber,
                                child: Text(
                                  string,
                                  maxLines: 3,
                                  overflow: TextOverflow.ellipsis,
                                ),
                              ),
                              avatar: const Icon(Icons.settings),
                              onDeleted: () {},
                            ),
                          ),
                      ],
                    ),
                    Column(
                      mainAxisSize: MainAxisSize.min,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        const Text(
                            'avatarBoxConstraints: BoxConstraints.tightForFinite() \ndeleteIconBoxConstraints: BoxConstraints.tightForFinite()',
                            textAlign: TextAlign.center),
                        for (String string in strings)
                          Padding(
                            padding: const EdgeInsets.all(8.0),
                            child: RawChip(
                              avatarBoxConstraints:
                                  const BoxConstraints.tightForFinite(),
                              deleteIconBoxConstraints:
                                  const BoxConstraints.tightForFinite(),
                              label: Container(
                                width: 150,
                                color: Colors.amber,
                                child: Text(
                                  string,
                                  maxLines: 3,
                                  overflow: TextOverflow.ellipsis,
                                ),
                              ),
                              avatar: const Icon(Icons.settings),
                              onDeleted: () {},
                            ),
                          ),
                      ],
                    ),
                  ],
                ),
              ),
            ),
          );
        }
      }
      
      ```
      
      </details>
      
      ### Preview
      ![Screenshot 2024-02-12 at 14 58 35](https://github.com/flutter/flutter/assets/48603081/5724bd07-7ac7-4987-b992-fa3ab8488273)
      
      # Example previews
      ![Screenshot 2024-02-12 at 22 15 14](https://github.com/flutter/flutter/assets/48603081/33af472d-3561-47d4-8d0d-e1628de1e0aa)
      ![Screenshot 2024-02-12 at 22 15 46](https://github.com/flutter/flutter/assets/48603081/3de78b59-5cb6-4fd8-879b-8e204aacb069)
      ccf42dde
    • Reid Baker's avatar
      Update dependencies in integration test (#143111) · a8e9f209
      Reid Baker authored
      Update dependencies to latest versions
      Related to #142618 
      Fixes #143219
      
      - [ x I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
      a8e9f209
    • Jackson Gardner's avatar
      Dual compile reland (#143262) · 5a9fa1e7
      Jackson Gardner authored
      This is an attempt at a reland of https://github.com/flutter/flutter/pull/141396
      
      The main changes here that are different than the original PR is fixes to wire up the `flutter test` command properly with the web renderer.
      5a9fa1e7
    • engine-flutter-autoroll's avatar
      Roll Flutter Engine from 920874bf2c1a to 8742f1c61a4c (2 revisions) (#143385) · 4f1fc5a8
      engine-flutter-autoroll authored
      https://github.com/flutter/engine/compare/920874bf2c1a...8742f1c61a4c
      
      2024-02-13 skia-flutter-autoroll@skia.org Roll Dart SDK from 105312b80125 to 04caefbfa60f (1 revision) (flutter/engine#50600)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from aaed347b2dbb to 30bba7419898 (7 revisions) (flutter/engine#50599)
      
      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 jsimmons@google.com,rmistry@google.com,zra@google.com 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
      4f1fc5a8
    • Andrew Kolos's avatar
      refactor: remove implicit globals dependencies in `writeBundle` (#143343) · e8a75aa0
      Andrew Kolos authored
      This is in service of https://github.com/flutter/flutter/pull/141194
      
      This will make it easier to get the `flutter run -d <browser>` and `flutter build fuschia` cases easier to get under test.
      e8a75aa0
    • Matan Lurey's avatar
      Remove message about `pub cache` that is not actionable (#143357) · 66367dd8
      Matan Lurey authored
      ... and neither the pub nor tools team think it's important.
      
      Fixes https://github.com/flutter/flutter/issues/140628.
      66367dd8
    • Taha Tesser's avatar
      Fix chips constructor docs for callbacks (#143361) · 2adbc2b8
      Taha Tesser authored
      fixes [ActionChip constructor documentation does not match class documentation](https://github.com/flutter/flutter/issues/137964)
      2adbc2b8
    • Nate's avatar
      Implementing `switch` expressions in `widgets/` (#143293) · 8eea4f17
      Nate authored
      This PR is the 7ᵗʰ step in the journey to solve issue #136139 and make the entire Flutter repo more readable.
      
      (previous pull requests: #139048, #139882, #141591, #142279, #142634, #142793)
      
      This pull request covers everything in `packages/flutter/lib/src/widgets/`. Most of it should be really straightforward, but there was some refactoring in the `getOffsetToReveal()` function in `two_dimensional_viewport.dart`. I'll add some comments to describe those changes.
      8eea4f17
    • engine-flutter-autoroll's avatar
      Manual roll Flutter Engine from 1c3ecee77350 to 920874bf2c1a (34 revisions) (#143380) · e94e4062
      engine-flutter-autoroll authored
      Manual roll Flutter Engine from 1c3ecee77350 to 920874bf2c1a (34 revisions)
      
      Manual roll requested by jonahwilliams@google.com
      
      Cannot build log URL because revision "920874bf2c1a" is invalid: Luci builds of "Linux Fuchsia FEMU" for 920874bf2c1a9ba2e9b7260b79ede8f1e26ea4f0 was FAILURE
      
      2024-02-13 dnfield@google.com Do not use AChoreographer on 32 bit devices (flutter/engine#50586)
      2024-02-13 zanderso@users.noreply.github.com Move libpng to //flutter/third_party/libpng (flutter/engine#50571)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from b150107d536d to aaed347b2dbb (2 revisions) (flutter/engine#50595)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Dart SDK from 8d3a8d85c883 to 105312b80125 (2 revisions) (flutter/engine#50593)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from d503bc9c6e46 to b150107d536d (1 revision) (flutter/engine#50591)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from a1d9b83034ac to d503bc9c6e46 (3 revisions) (flutter/engine#50587)
      2024-02-13 30870216+gaaclarke@users.noreply.github.com [Impeller] cleaned up and removed golden test exceptions (flutter/engine#50572)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from 17d00f9241b3 to a1d9b83034ac (2 revisions) (flutter/engine#50582)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from RVHAIKU50ogkiV-Lj... to l6mWjvlO1xJg5ZFKK... (flutter/engine#50579)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Dart SDK from 94f7dec34cef to 8d3a8d85c883 (1 revision) (flutter/engine#50577)
      2024-02-13 matanlurey@users.noreply.github.com Add Impeller runtime options to Android `scenario_app` (flutter/engine#50487)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from c464143dfaab to 17d00f9241b3 (1 revision) (flutter/engine#50576)
      2024-02-13 skia-flutter-autoroll@skia.org Roll Skia from ecf2f622d0b3 to c464143dfaab (2 revisions) (flutter/engine#50574)
      2024-02-12 jonahwilliams@google.com [Impeller] CommandPoolVK recycles command buffers too. (flutter/engine#50468)
      2024-02-12 matanlurey@users.noreply.github.com Make `dart:ui#Paint` `final` to allow changes/disallow implementing. (flutter/engine#50557)
      2024-02-12 robert.ancell@canonical.com Replace usage of an integer for GdkModifierType (flutter/engine#50481)
      2024-02-12 robert.ancell@canonical.com Remove FlKeyEvent.dispose_origin and use GdkEvent type for origin (flutter/engine#50483)
      2024-02-12 zanderso@users.noreply.github.com Move Linux impeller_unittests to linux_unopt (flutter/engine#50558)
      2024-02-12 chinmaygarde@google.com [Impeller] Don't suppress outdated validation error. (flutter/engine#50568)
      2024-02-12 chinmaygarde@google.com [Impeller] Remove references to moved impeller/image from README. (flutter/engine#50513)
      2024-02-12 skia-flutter-autoroll@skia.org Roll Dart SDK from dca13675e65e to 94f7dec34cef (1 revision) (flutter/engine#50567)
      2024-02-12 skia-flutter-autoroll@skia.org Roll Skia from f88eeb658358 to ecf2f622d0b3 (1 revision) (flutter/engine#50566)
      2024-02-12 skia-flutter-autoroll@skia.org Roll Skia from 867c1e8390e2 to f88eeb658358 (5 revisions) (flutter/engine#50564)
      2024-02-12 jason-simmons@users.noreply.github.com Roll vulkan-deps to 014f44e134a1de387791bffacc32ff9d8db71176 (flutter/engine#50515)
      2024-02-12 skia-flutter-autoroll@skia.org Roll Skia from 4081496b7693 to 867c1e8390e2 (20 revisions) (flutter/engine#50562)
      2024-02-12 jonahwilliams@google.com [Impeller] force render pass construction on all backends to ensure image layout is transitioned/render pass state setup. (flutter/engine#50539)
      2024-02-12 737941+loic-sharma@users.noreply.github.com [Windows] Make the view own its EGL surface (flutter/engine#50421)
      2024-02-12 skia-flutter-autoroll@skia.org Roll Dart SDK from 5c9e79e66364 to dca13675e65e (1 revision) (flutter/engine#50559)
      2024-02-12 1889916+miguelfrde@users.noreply.github.com [fuchsia] Update Inspect library usage (flutter/engine#50467)
      2024-02-12 zanderso@users.noreply.github.com Initializes RBE in the build config runner (flutter/engine#50543)
      2024-02-12 tugorez@users.noreply.github.com Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] (flutter/engine#50533)
      2024-02-12 dnfield@google.com Refactor NDK helpers some more, add methods for SurfaceControl/Transaction, tests (flutter/engine#50540)
      2024-02-12 30870216+gaaclarke@users.noreply.github.com [Impeller] deleted the old blur (flutter/engine#50470)
      2024-02-12 kjlubick@users.noreply.github.com Update codec defines for Skia (flutter/engine#50554)
      
      Also rolling transitive DEPS:
        fuchsia/sdk/core/linux-amd64 from RVHAIKU50ogk to l6mWjvlO1xJg
      
      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 jonahwilliams@google.com,jsimmons@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
      is aware of the problem.
      
      ...
      e94e4062
    • Matan Lurey's avatar
      Allow deprecated members from the Dart SDK and Flutter Engine to roll in (#143347) · a628814e
      Matan Lurey authored
      Namely, without breaking the tree. This is a deliberate policy decision
      change.
      
      See https://github.com/flutter/flutter/issues/143312.
      a628814e
    • Gray Mackall's avatar
      [Re-re-land] Enforce a policy on supported Gradle, Java, AGP, and KGP versions (#143341) · 8ba086a2
      Gray Mackall authored
      This is a direct revert of (the revert of (the reland of (the policy pr))): https://github.com/flutter/flutter/pull/143132. 
      
      The only change is:
      1. to put a conditional all on one line, because the packages repository has a test that uses an old flutter project to make sure nothing regresses. The old project uses an old gradle version, and the old gradle version bundles an old groovy version, and the old groovy version has a bug where lines that start with `&&` don't always work: https://issues.apache.org/jira/browse/GROOVY-7218 (I enjoy that the revert reason ends up providing another strong justification to go forward with the policy). Also thanks to @reidbaker for pointing out this bug.
      2. I also made a slight formatting change to the messages that print when out of the support bounds, which I think looks slightly better.
      
      I tested this with on a branch that included a revert of https://github.com/flutter/flutter/pull/142008, and was able to recreate the failure and verify that it was resolved by 1).
      8ba086a2
    • engine-flutter-autoroll's avatar
      Roll Packages from 0a692590a885 to 9385bbb3cf46 (7 revisions) (#143366) · 634fcc71
      engine-flutter-autoroll authored
      https://github.com/flutter/packages/compare/0a692590a885...9385bbb3cf46
      
      2024-02-13 louisehsu@google.com Convert startProductRequest(), finishTransaction(), restoreTransactions(), presentCodeRedemptionSheet() to pigeon (flutter/packages#6032)
      2024-02-13 49699333+dependabot[bot]@users.noreply.github.com [in_app_pur]: Bump org.json:json from 20231013 to 20240205 in /packages/in_app_purchase/in_app_purchase/example/android/app (flutter/packages#6096)
      2024-02-12 stuartmorgan@google.com [local_auth] Rename iOS classes (flutter/packages#6108)
      2024-02-12 jakubwalusiak@gmail.com [video_player_android] Handle BehindLiveWindowException (flutter/packages#5869)
      2024-02-12 reidbaker@google.com [in_app_purchase] Add alternative billing apis for android (flutter/packages#6056)
      2024-02-12 stuartmorgan@google.com [webview_flutter] Update compileSdk to 34 (flutter/packages#6106)
      2024-02-12 37270954+foxtrotravi@users.noreply.github.com [cupertino_icons] Add example to cupertino icons (flutter/packages#5312)
      
      If this roll has caused a breakage, revert this CL and stop the roller
      using the controls here:
      https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
      Please CC flutter-ecosystem@google.com,rmistry@google.com 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
      634fcc71
    • Taha Tesser's avatar
      Fix `InputDecorator`s `suffix` and `prefix` widgets are tappable when hidden (#143308) · 1f8d110b
      Taha Tesser authored
      fixes [The InputDecoration's suffix and prefix widget can be tapped even if it does not appear](https://github.com/flutter/flutter/issues/139916)
      
      This PR also updates two existing tests to pass the tests for this PR. These tests are trying to tap prefix and  suffix widgets when they're hidden. While the linked issue had visible prefix and suffix widgets https://github.com/flutter/flutter/issues/39376 for reproduction.
      
      ### Code sample
      
      <details>
      <summary>expand to view the code sample</summary> 
      
      ```dart
      import 'package:flutter/material.dart';
      
      void main() {
        runApp(MainApp());
      }
      
      class MainApp extends StatelessWidget {
        final _messangerKey = GlobalKey<ScaffoldMessengerState>();
      
        MainApp({super.key});
      
        @override
        Widget build(BuildContext context) {
          return MaterialApp(
            scaffoldMessengerKey: _messangerKey,
            home: Scaffold(
              body: Container(
                alignment: Alignment.center,
                padding: const EdgeInsets.all(16.0),
                child: TextField(
                  decoration: InputDecoration(
                    labelText: 'Something',
                    prefix: GestureDetector(
                      onTap: () {
                        _messangerKey.currentState?.showSnackBar(
                            const SnackBar(content: Text('A tap has occurred')));
                      },
                      child: const Icon(Icons.search),
                    ),
                    suffix: GestureDetector(
                      onTap: () {
                        _messangerKey.currentState?.showSnackBar(
                            const SnackBar(content: Text('A tap has occurred')));
                      },
                      child: const Icon(Icons.search),
                    ),
                  ),
                ),
              ),
            ),
          );
        }
      }
      ```
      
      </details>
      
      ### Before
      ![ScreenRecording2024-02-12at18 40 34-ezgif com-video-to-gif-converter](https://github.com/flutter/flutter/assets/48603081/c101e0d6-ce5a-4b28-9626-28bcb83d2a5c)
      
      ### After
      ![ScreenRecording2024-02-12at18 40 10-ezgif com-video-to-gif-converter](https://github.com/flutter/flutter/assets/48603081/923b348e-8adf-4d64-9dc3-e75d30e3e2fb)
      1f8d110b
    • Tirth's avatar
      Pass-Through `inputFormatters` in `DropdownMenu` (#143250) · e93a10d1
      Tirth authored
      Pass-Through `inputFormatters` in `DropdownMenu`.
      
      Fixes: #142374
      e93a10d1
    • Taha Tesser's avatar
      Fix `insetPadding` parameter nullability for dialogs (#143305) · d271791e
      Taha Tesser authored
      fixes [`insetPadding` should be nullable in dialogs](https://github.com/flutter/flutter/issues/117125)
      d271791e
  2. 12 Feb, 2024 15 commits
  3. 11 Feb, 2024 3 commits
  4. 10 Feb, 2024 7 commits