Commit Graph

23878 Commits

Author SHA1 Message Date
Gianluca Bettega
ce15e3bcb5 added enabled to search anchor (#153256)
Added the same parameter from #137388 to the `SearchAnchor`

This PR will fix: #150331
2024-09-04 18:25:06 +00:00
Mairramer
d9dda9d08f Fixes an issue where itemExtent was incorrectly assigned to renderObject.minExtent (#153805)
Fixes #153694.
Previously, when state was updated, the updateRenderObject method incorrectly assigned itemExtent to renderObject.minExtent, which unintentionally overrode the intended default behavior.
2024-09-04 18:19:51 +00:00
Gray Mackall
056c40f55b Make the Flutter Gradle Plugin apply FlutterExtension to (flutter) plugins (#151861)
Makes the Flutter Gradle Plugin apply the `FlutterExtension` (the class that vends `flutter.minSdkVersion`, etc) to Flutter plugins.

This allows plugin authors to use `flutter.compileSdkVersion` and the like in plugin `build.gradle` files.

Doesn't use it in templates yet - holding off till we can see how this works in the plugins repo (which will sadly have to wait till this makes the next stable 😢 )
2024-09-04 17:47:59 +00:00
Amal Krishna
4a54ca8285 Add static of accessor methods to ColorScheme and TextTheme (#154073)
The most common use case to lookup a `ThemeData` instance using `Theme.of(context)` is to access either the `ColorScheme`, the `TextTheme`, or both.

Before this change:
```dart
final colors = Theme.of(context).colorScheme;
final textTheme = Theme.of(context).textTheme;
final primaryTextTheme = Theme.of(context).primaryTextTheme;
```
or
```dart
final ThemeData(
      :colorScheme,
      :textTheme,
      :primaryTextTheme,
    ) = Theme.of(context);
```
After this change:
```dart
final colors = ColorScheme.of(context);
final textTheme = TextTheme.of(context);
final primaryTextTheme = TextTheme.primaryOf(context);
```

### Primary Changes
This PR adds static `of` convenience methods to `ColorScheme` and `TextTheme` that delegate to the `ThemeData`'s respective properties. The methods added are:
* `ColorScheme.of(context)` that returns `Theme.of(context).colorScheme`.
* `TextTheme.of(context)` that returns `Theme.of(context).textTheme`.
* `TextTheme.primaryOf(context)` that returns `Theme.of(context).primaryTextTheme`.

### Side-effects
To allow the above changes to function, this PR adds:
* A `theme.dart` import to `color_scheme.dart` to access to `Theme`.
* A `theme.dart` import to `text_theme.dart` to access to `Theme`.
* A `package:flutter/widgets.dart` import to `text_theme.dart` to access `BuildContext`. 
* The above import allowed getting rid of the same `@docImport` from `text_theme.dart`.

### Documentation updates
This PR also updates the following documentation elements:
* Adds docs to the newly added members.
* Updates `TextTheme`'s docs to instruct using `TextTheme.of(context)` instead of `Theme.of(context).textTheme`.
* Updates `Theme.of` to add a "See also" section to `ColorScheme.of` and `TextTheme.of` since these use cases are among the most common ones for `Theme.of(context)`.

Fixes #72201.
2024-09-04 16:27:48 +00:00
Qun Cheng
182c266961 Update tokens to v6.1 (#153722)
This PR is to update the token version to v6.1. 
* This version fixes https://github.com/flutter/flutter/issues/153271
* Change the chip default border color from `ColorScheme.outline` to `ColorScheme.outlineVariant`. The Chips' border color is softened to improve visual hierarchy between chips and buttons
2024-09-04 00:20:16 +00:00
RamonFarizel
7eb07c983c Improve Documentation for ResizeImage Dimensions and Usage (#154212)
This pull request enhances the documentation for the ResizeImage widget to provide clearer guidance on the use of the `width` and `height` parameters.

Fixes #136508
2024-09-03 22:18:21 +00:00
Tirth
3ff7da2305 Tiny Fix in Docs for SliverList.separated & SliverList.builder (#154551)
Tiny Fix in Docs for `SliverList.separated` & `SliverList.builder`

Fixes #154538
2024-09-03 21:05:19 +00:00
Tirth
4d552e913e Tiny Fix in Docs for SliverFixedExtentList & SliverVariedExtentList (#154557)
Tiny Fix in Docs for `SliverFixedExtentList` & `SliverVariedExtentList`

Fixes #154554
2024-09-03 21:05:16 +00:00
gaaclarke
52bb0c4cee Switched CupertinoDynamicColor to implements Color (#153938)
issue: https://github.com/flutter/flutter/issues/127855
This was an impediment to [changing the Color class](https://github.com/flutter/engine/pull/54415).
2024-09-03 20:00:04 +00:00
Mohsin Raza
76955826ae set onChangedField function to only update options with new results (#150776)
Added function and result identifiers into the RawAutocomplete onChangedField method, now the options value will not be updated if the data is from an optionsBuilder call older than the last call which updated the options

*List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.*
Issue #150774 is fixed by this PR

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
2024-09-03 19:55:12 +00:00
Darniel Rumple
7b71d9f493 Fix typing error in AutofillGroup docs (#154405)
Fixes a small typing error in the AutofillGroup docs
2024-09-03 18:22:00 +00:00
Nate Wilson
c2a2b13e0c Refactor CircularNotchedRectangle.getOuterPath() (#154036)
This PR makes a notched rectangle method a bit more readable.

- The circular notched rectangle's `getOuterPath()` method no longer
uses any null-asserts.
- It also used to have 2 variables (`r` and `notchRadius`) that held the
same value, but that's no longer the case.
2024-09-03 12:17:00 -06:00
Shreyans Pathak
6f19403eb6 Replace ListTile usage with CupertinoListTile (#154473)
This PR replaces the `ListTile` usage in the cupertino switch example with `CupertinoListTile`.

Fixes #154450
2024-09-03 18:14:53 +00:00
Phil Quitslund
29af4a174c sort part directives (#154456)
A pending change to the `directives_ordering` lint will enforce part
sorting.

See: https://github.com/dart-lang/linter/issues/4945

And `flutter-analyze` failure:


https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8738142237425031297/+/u/analyze_flutter_flutter/stdout

Related to change: https://dart-review.googlesource.com/c/sdk/+/383023

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2024-09-03 09:21:37 -07:00
Konstantin Scheglov
74a31399e1 Remove unnecessary imports. (#154527)
With https://dart-review.googlesource.com/c/sdk/+/382901 we will start checking it differently, and find more unnecessary imports.
2024-09-03 16:14:44 +00:00
Daco Harkes
6a47cdb6b5 [native assets] Roll dependencies (#154507)
Roll the dependencies from dart-lang/native.
2024-09-03 16:07:08 +00:00
Dimil Kalathiya
620d1ea729 Expose long press in ``CupertinoButton`` (#154052)
Adds long press as per https://github.com/flutter/flutter/issues/153956 request

Fixes #153956
2024-08-30 18:56:00 +00:00
hangyu
0d8247eb7d Add a RegExp for iOS domain when reading domains from xcodeProject (#154201)
Append the string `?mode=<alternate mode>` to the associated domain to
enable alternate mode in some use cases is recommended in apple
developer guide
(https://developer.apple.com/documentation/xcode/configuring-an-associated-domain#Enable-alternate-mode-for-unreachable-servers)

So when reading these domains from xcode settings, we should consider
this case and trim it.













## Pre-launch Checklist

- [ ] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [ ] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [ ] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [ ] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2024-08-30 11:17:29 -07:00
Dishank Jindal
01e8ecaea6 Added support for elevation on refresh indicator (#154182)
Refresh Indicator Elevation:

- Added elevation to the refresh indicator using elevation attribute.
- This change improves the indicator's visibility against various background colors and enhances overall UI consistency.
- If we want to get rid of shadow effect from the indicator itself.

The refresh indicator did not provide the control over depth of the progress indicator. This change addresses that issue by adding elevation to the indicator, creating a subtle depth effect that makes it more visually prominent and provides better feedback to the user.

No breaking changes.

| Before | After |
| --- | --- |
| ![337189619-885559b5-3046-4926-aea0-66be8f5d58c8](https://github.com/user-attachments/assets/24bd5b26-c776-4131-b5ca-1054e2cc90e8) | ![337189633-5c4d2d67-0729-4d1d-86a0-1402d1ac009e](https://github.com/user-attachments/assets/02d655f6-851b-4cd5-b2ae-1c3a496f9189) |

Pre-launch Checklist
2024-08-30 17:50:08 +00:00
Justin McCandless
995a1da104 Android predictive back should work after returning to the app from a notification (#154313)
Fixes a bug where the app would exit on a back gesture when there were still routes in the navigation stack after returning to the app from a notification.
2024-08-30 09:36:10 -07:00
Andrew Kolos
a8528c70b6 catch StateError thrown from Chromium.close (#154366)
Fixes crasher https://github.com/flutter/flutter/issues/154203.

Also does a little refactoring to move exception handling into the `getChromeTabGuarded` utility function.

I plan on cherry-picking a subset of this change. This would be included in the custom CP patch for https://github.com/flutter/flutter/issues/153064.
2024-08-30 00:01:12 +00:00
Mairramer
680f33d238 fix:: elevation and scrollUnderElevation depends on scrolling drawers on issue #120083 (#150793)
fixes https://github.com/flutter/flutter/issues/120083

Description
This PR addresses the following issues:
- Resolves the unexpected scrolledUnderElevation trigger that occurs when scrolling within the Drawer and NavigationDrawer.
2024-08-29 23:06:20 +00:00
Matan Lurey
712cf654d1 Remove --disable-dart-dev across flutter/flutter. (#154280)
As per the Dart CLI team and @bkonyi, this is no longer providing value and we shouldn't cargo-cult it.

Work towards https://github.com/flutter/flutter/issues/154268.
2024-08-29 22:50:04 +00:00
Christopher Fujino
eed0b71c20 unpin path_provider_android (#154369)
Fixes https://github.com/flutter/flutter/issues/140796
2024-08-29 22:46:19 +00:00
Qun Cheng
1501e9eee0 CupertinoSlidingSegmentedControl is able to have proportional layout based on segment content (#153125) 2024-08-29 15:06:44 -07:00
Michael Goderbauer
de3d174050 Make ViewAnchor a LookupBoundary (#154300)
So, uhm, 2 years ago in https://github.com/flutter/flutter/pull/116429 we introduced this concept of a lookup boundary to hide certain InheritedWidgets in widget subtrees who belong to a different render tree than the InheritedWidget itself. This is for example needed for the Material widget: Buttons reach out to their Material ancestor to draw ink splashes on its associated render object. This only produces the desired effect if the button render object is a descendant of the Material render object (the two need to be in the same render tree). Overlay widgets have a similar problem. 

Lookup boundaries were specifically designed for multi view support, where a sub view would be powered by a separate and independent render tree. Ergo, widgets in the sub view shouldn't see these InheritedWidgets if they are part of the parent view. After all, it would be strange if clicking on a button in a subview draws the ink splash effect into the parent view. Unfortunately, we (and by that I really mean I) forgot to put a LayoutBoundary into the relevant multi view widgets when those were introduced in https://github.com/flutter/flutter/pull/125003. This PR addresses that by wrapping the `ViewAnchor.view` child in a LookupBoundary so that its subtree (which bootstraps a separate render tree) cannot see these InheritedWidgets in the parent view.
2024-08-29 21:49:25 +00:00
Ben Konyi
04595bc088 Launch DDS using DartDevelopmentServiceLauncher (#154015)
`DartDevelopmentServiceLauncher` was created to share the DDS launch
logic from flutter_tools with other Dart tooling.

---------

Co-authored-by: Andrew Kolos <andrewrkolos@gmail.com>
2024-08-29 16:16:27 -04:00
flutter-pub-roller-bot
055350f84a Roll pub packages (#154360)
This PR was generated by `flutter update-packages --force-upgrade`.
2024-08-29 14:56:39 -04:00
PurplePolyhedron
48b7a5a38f Make Scrollable.ensureVisible document clearer that it would scroll all enclosing Scrollable (#154321)
Current documentation for `Scrollable.ensureVisible` could sometimes be misunderstood as if it only scroll the closest `Scrollable`.
2024-08-29 17:14:11 +00:00
Jason Simmons
9bf7d7bb35 Do not paint a description label when rendering an integration test (#153875)
Fixes https://github.com/flutter/flutter/issues/153624
2024-08-29 17:08:38 +00:00
jesswrd
05c454c28c Agp Java Compatability Custom Error (#154142)
Catches gradle error and throws a helpful error message that indicates
an incompatability between Java and AGP versions and how to fix the
issue.

Related issue:
[128524](https://github.com/flutter/flutter/issues/128524)

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.
2024-08-29 10:06:48 -07:00
flutter-pub-roller-bot
f9351fae7e Roll pub packages (#154267)
This PR was generated by `flutter update-packages --force-upgrade`.
2024-08-29 16:28:08 +00:00
Gabriel Terwesten
f0860d83f5 [native assets] Rewrite install names for relocated native libraries (#153054)
Native libraries that are contributed by native asset builders can depend on each other. For macOS and iOS, native libraries are repackaged into Frameworks, which renders install names that have been written into dependent libraries invalid. 

With this change, a mapping between old and new install names is maintained, and install names in dependent libraries are rewritten as a final step.

Related to https://github.com/dart-lang/native/issues/190
2024-08-29 14:51:23 +00:00
Tirth
a73ab15fbf Minor Formatting (#154210)
Minor Formatting.
2024-08-29 13:04:18 +00:00
Taha Tesser
9d971fada1 Fix IconButton doesn't show Tooltip when hovering within the button area but outside the Icon (#153691)
Fixes [Tooltip is not shown consistently on entire IconButton](https://github.com/flutter/flutter/issues/153544)

### Code sample

<details>
<summary>expand to view the code sample</summary> 

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: Center(
          child: Row(
            spacing: 20.0,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              IconButton(
                padding: const EdgeInsets.all(20.0),
                icon: const ColoredBox(
                  color: Color(0xFFFF0000),
                  child: Icon(Icons.add),
                ),
                onPressed: () {},
                tooltip: 'Tooltip',
              ),
              IconButton.filled(
                padding: const EdgeInsets.all(20.0),
                icon: const ColoredBox(
                  color: Color(0xFFFF0000),
                  child: Icon(Icons.add),
                ),
                onPressed: () {},
                tooltip: 'Tooltip',
              ),
              IconButton.filledTonal(
                padding: const EdgeInsets.all(20.0),
                icon: const ColoredBox(
                  color: Color(0xFFFF0000),
                  child: Icon(Icons.add),
                ),
                onPressed: () {},
                tooltip: 'Tooltip',
              ),
              IconButton.outlined(
                padding: const EdgeInsets.all(20.0),
                icon: const ColoredBox(
                  color: Color(0xFFFF0000),
                  child: Icon(Icons.add),
                ),
                onPressed: () {},
                tooltip: 'Tooltip',
              ),
            ],
          ),
        ),
      ),
    ),
  );
}
```

</details>

### Before (Hover outside the red box but within the `IconButton`)

<img width="579" alt="Screenshot 2024-08-19 at 15 30 35" src="https://github.com/user-attachments/assets/fd2a65f1-f30d-4907-a2d9-c11dc59efb2b">

### Before (Hover outside the red box but within the `IconButton`)

<img width="579" alt="Screenshot 2024-08-19 at 15 30 09" src="https://github.com/user-attachments/assets/b2b4dba7-4d0a-44c9-b1e1-742a900ffd8a">

### Demo

https://github.com/user-attachments/assets/129eb8ee-e132-45c9-80b7-165486c02951
2024-08-29 07:02:23 +00:00
Nate Wilson
e1f0083c78 Fix Drawer prematurely snapping (#153955)
This regression is due to the fact that `animationController.isAnimating` and `animationController.status.isAnimating` sometimes return opposite values.

This PR implements & tests the bugfix, and also adds documentation to explain this behavior.

<br>

fixes https://github.com/flutter/flutter/issues/153851

cc @azeunkn0wn @huycozy
2024-08-29 02:23:19 +00:00
LongCatIsLooong
24194e5631 Defer overlay child layout if the target overlay is currently laying out its size-determining child (#154222)
Fixes #153903
2024-08-29 01:59:34 +00:00
Jackson Gardner
b95548e31c Don't remove toString implementations while in debug mode. (#154216)
This matches the behavior of AOT/VM compilation.
2024-08-28 20:19:48 +00:00
Taha Tesser
d147e52d6a Add missing tests for requestFocus routes parameter in Material and Cupertino libraries (#154005)
Fixes [Add missing tests for  `requestFocus` routes parameter](https://github.com/flutter/flutter/issues/153999)
2024-08-28 18:40:05 +00:00
Victor Sanni
446be11037 Scroll CupertinoContextMenu if items overflow (#154133)
Fixes https://github.com/flutter/flutter/issues/55025
Fixes https://github.com/flutter/flutter/issues/154040

### Native Context menu

https://github.com/user-attachments/assets/4ebed3e3-ab4f-4e94-8b47-e9c957f245ef

### Flutter iOS Context menu

https://github.com/user-attachments/assets/ad8426b4-ff18-40e1-9a4f-c61d7620b069

### Flutter macOS Context menu

https://github.com/user-attachments/assets/7374a8b2-ee8d-447b-9cd4-a7f2e7674fc2
2024-08-28 17:20:12 +00:00
Reid Baker
75190cba3b Add warning if changing flutterEmbedding string. (#154181)
No bug
2024-08-28 16:15:21 +00:00
SuicaLondon
ee0fdae631 Add comment document to fontFamily in the IconData (#154150)
I’ve added a comment document for the `fontFamily` property of `IconData`. The purpose of this is to provide developers with a hint when importing a custom icon. It only includes the change made in the comment.

The original issue was: 
[154144](https://github.com/flutter/flutter/issues/154144)
It was marked as closed so I created a new issues for proposal:
Fixes #154149

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
2024-08-28 08:38:06 +00:00
Polina Cherkasova
3379460596 Upgrade leak tracker. (#154157) 2024-08-28 05:23:18 +00:00
chunhtai
88bee39f54 Refactored HeroController logic to handle complex cases (#150027)
previous pr https://github.com/flutter/flutter/pull/140675

fixes https://github.com/flutter/flutter/issues/115358
fixes https://github.com/flutter/flutter/issues/110426
fixes https://github.com/flutter/flutter/issues/88578

most of the issue here is that herocontroller try to deal with multiple push/pops in one frame. This pr introduce a new navigator observer api didChangeTop, which fired when the top most route change regardless the sequence of the operations.

One of the uncertainty is how to infer the hero flight direction, but the current logic in this PR seems to be cover all the test cases
2024-08-28 01:53:24 +00:00
Mohammad Hamdan
e1eaad17ad [Doc] [Enhancement] Add more clarification to initial value documentation for form (#153757)
When you change the `initialValue` of a `TextFormField`, it will not trigger a widget rebuild, which is the intended behavior. This PR is meant to clarify that. https://github.com/flutter/flutter/issues/152816
2024-08-28 01:42:10 +00:00
hangyu
4056639a52 Change flag internalAddSemanticForOnTap default value to true (#153193)
This is a follow up on https://github.com/flutter/flutter/pull/152526 

1. Make changes with an additional parameter ( bool internalAddSemanticForOnTap = false) (https://github.com/flutter/flutter/pull/152526 )
2. Send regular CLs in google3 to pass internalAddSemanticForOnTap: true, and update the tests / text goldens 3. accordingly.  g3 fix sent:  cl/661353802
3. Send a PR to flip the default value to true. (This PR)
4. Send CLs internally to remove internalAddSemanticForOnTap: true.
5. Send another PR to remove the now-redundant internalAddSemanticForOnTap flag.
(<----This PR is step 3)
2024-08-28 01:36:20 +00:00
Gray Mackall
dad93209ab Make sure usesUnsupportedDependencyVersions property exists before checking it (#154121)
Make sure `usesUnsupportedDependencyVersions` property exists before checking it in the Flutter Gradle plugin.

Related to: https://github.com/flutter/flutter/issues/153668 (doesn't fix, will need to cherry pick to fix).
2024-08-28 01:30:24 +00:00
Yegor
93dc40916c [web:tools] disable search engine choice screen in flutter run (#154059)
The choice screen is irrelevant when debugging apps locally. `flutter run` creates a separate user profile for testing only. It doesn't touch users' browser settings.

Fixes https://github.com/flutter/flutter/issues/153928
2024-08-27 17:00:13 +00:00
Andrew Kolos
9ec2588fd0 handle IOExceptions coming from ChromeTab.connect (#153978)
Fixes https://github.com/flutter/flutter/issues/153972  (unless the cause of https://github.com/flutter/flutter/issues/153064#issuecomment-2305662791 happens to also prevent this fix from working).

In this PR, I've looked for all non-test call sites of `ChromeConnection.getTabs` and made sure are all wrapped in `try` blocks that handle `IOException` (`HttpException` is what we see in crash reporting, but I figure any `IOException` might as well be the same for all intents and purposes).

I plan on cherry-picking this the stable branch.
2024-08-27 16:19:28 +00:00
Taha Tesser
e17d535305 Fix AlertDialog.adaptive clipBehavior is non-nullable (#154173)
Fixes https://github.com/flutter/flutter/issues/153983
2024-08-27 13:23:06 +00:00