Update Dart revision to 3.8.0-278.4.beta (#168391)

* Updated Dart revision to [`e7f2f0556e3e57acb60749467e54f9a44b2bfc76`](http://goto.google.com/dart-hash/e7f2f0556e3e57acb60749467e54f9a44b2bfc76) (`3.8.0-278.4.beta`).
* ~Ran `gclient sync -D` and `tools/dart/create_updated_flutter_deps.py` (nothing was updated)~ ran wrong command
* Ran `gclient sync -D` and `tools/dart/create_updated_flutter_deps.py -f <flutter_DEPS_file_path>` (Dart style revision was updated)
This commit is contained in:
Camille Simon 2025-05-09 09:48:01 -07:00 committed by GitHub
parent b7e009ca24
commit 38e19d01dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 34 additions and 48 deletions

4
DEPS
View File

@ -56,7 +56,7 @@ vars = {
# Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS # Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS
# You can use //tools/dart/create_updated_flutter_deps.py to produce # You can use //tools/dart/create_updated_flutter_deps.py to produce
# updated revision list of existing dependencies. # updated revision list of existing dependencies.
'dart_revision': '9003f7927a24fd87c34154e04585bfbcfd4d9188', 'dart_revision': 'e7f2f0556e3e57acb60749467e54f9a44b2bfc76',
# WARNING: DO NOT EDIT MANUALLY # WARNING: DO NOT EDIT MANUALLY
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py # The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@ -314,7 +314,7 @@ deps = {
Var('dart_git') + '/core.git' + '@' + Var('dart_core_rev'), Var('dart_git') + '/core.git' + '@' + Var('dart_core_rev'),
'engine/src/flutter/third_party/dart/third_party/pkg/dart_style': 'engine/src/flutter/third_party/dart/third_party/pkg/dart_style':
Var('dart_git') + '/dart_style.git@21de99ec0ff8ace4d946a746fb427fffd6afa535', Var('dart_git') + '/dart_style.git@100db45075abdd66fd8788b205243e90ff0595df',
'engine/src/flutter/third_party/dart/third_party/pkg/dartdoc': 'engine/src/flutter/third_party/dart/third_party/pkg/dartdoc':
Var('dart_git') + '/dartdoc.git@62aefbb788baf5b73b2d704d66d9735a7ca56a69', Var('dart_git') + '/dartdoc.git@62aefbb788baf5b73b2d704d66d9735a7ca56a69',

View File

@ -1,4 +1,4 @@
Signature: e41496825525b0b25bd65a5a8e93c81a Signature: f4f0a7ce457a816a7b8e0f13355125f4
==================================================================================================== ====================================================================================================
LIBRARY: dart LIBRARY: dart
@ -4858,7 +4858,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
This Source Code Form is "Incompatible With Secondary Licenses", as This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0. defined by the Mozilla Public License, v. 2.0.
You may obtain a copy of this library's Source Code Form from: https://dart.googlesource.com/sdk/+/0d6811928830b87e36a0f49eb7fe554c308d3699 You may obtain a copy of this library's Source Code Form from: https://dart.googlesource.com/sdk/+/e7f2f0556e3e57acb60749467e54f9a44b2bfc76
/third_party/fallback_root_certificates/ /third_party/fallback_root_certificates/
==================================================================================================== ====================================================================================================

View File

@ -96,11 +96,10 @@ class _WidgetPreviewErrorWidget extends StatelessWidget {
TextSpan( TextSpan(
text: frame.location, text: frame.location,
style: linkTextStyle, style: linkTextStyle,
recognizer: recognizer: TapGestureRecognizer()
TapGestureRecognizer() ..onTap = () {
..onTap = () { // TODO(bkonyi): notify IDEs to navigate to the source location via DTD.
// TODO(bkonyi): notify IDEs to navigate to the source location via DTD. },
},
), ),
TextSpan(text: ' ' * (longest - frame.location.length)), TextSpan(text: ' ' * (longest - frame.location.length)),
const TextSpan(text: ' '), const TextSpan(text: ' '),
@ -244,11 +243,8 @@ class WidgetPreviewerWindowConstraints extends InheritedWidget {
final BoxConstraints constraints; final BoxConstraints constraints;
static BoxConstraints getRootConstraints(BuildContext context) { static BoxConstraints getRootConstraints(BuildContext context) {
final result = final result = context
context .dependOnInheritedWidgetOfExactType<WidgetPreviewerWindowConstraints>();
.dependOnInheritedWidgetOfExactType<
WidgetPreviewerWindowConstraints
>();
assert( assert(
result != null, result != null,
'No WidgetPreviewerWindowConstraints founds in context', 'No WidgetPreviewerWindowConstraints founds in context',
@ -348,10 +344,9 @@ class _WidgetPreviewWrapperBox extends RenderShiftedBox {
// the previewer. In this case, apply finite constraints (e.g., the // the previewer. In this case, apply finite constraints (e.g., the
// constraints for the root of the previewer). Otherwise, use the // constraints for the root of the previewer). Otherwise, use the
// widget's actual constraints. // widget's actual constraints.
_constraintOverride = _constraintOverride = minInstrinsicHeight == 0
minInstrinsicHeight == 0 ? _previewerConstraints
? _previewerConstraints : const BoxConstraints();
: const BoxConstraints();
} }
super.layout(constraints, parentUsesSize: parentUsesSize); super.layout(constraints, parentUsesSize: parentUsesSize);
} }
@ -483,18 +478,16 @@ class _WidgetPreviewScaffold extends StatelessWidget {
IconButton( IconButton(
onPressed: () => _toggleLayout(LayoutType.gridView), onPressed: () => _toggleLayout(LayoutType.gridView),
icon: Icon(Icons.grid_on), icon: Icon(Icons.grid_on),
color: color: selectedLayout == LayoutType.gridView
selectedLayout == LayoutType.gridView ? Colors.blue
? Colors.blue : Colors.black,
: Colors.black,
), ),
IconButton( IconButton(
onPressed: () => _toggleLayout(LayoutType.listView), onPressed: () => _toggleLayout(LayoutType.listView),
icon: Icon(Icons.view_list), icon: Icon(Icons.view_list),
color: color: selectedLayout == LayoutType.listView
selectedLayout == LayoutType.listView ? Colors.blue
? Colors.blue : Colors.black,
: Colors.black,
), ),
], ],
); );

View File

@ -96,11 +96,10 @@ class _WidgetPreviewErrorWidget extends StatelessWidget {
TextSpan( TextSpan(
text: frame.location, text: frame.location,
style: linkTextStyle, style: linkTextStyle,
recognizer: recognizer: TapGestureRecognizer()
TapGestureRecognizer() ..onTap = () {
..onTap = () { // TODO(bkonyi): notify IDEs to navigate to the source location via DTD.
// TODO(bkonyi): notify IDEs to navigate to the source location via DTD. },
},
), ),
TextSpan(text: ' ' * (longest - frame.location.length)), TextSpan(text: ' ' * (longest - frame.location.length)),
const TextSpan(text: ' '), const TextSpan(text: ' '),
@ -244,11 +243,8 @@ class WidgetPreviewerWindowConstraints extends InheritedWidget {
final BoxConstraints constraints; final BoxConstraints constraints;
static BoxConstraints getRootConstraints(BuildContext context) { static BoxConstraints getRootConstraints(BuildContext context) {
final result = final result = context
context .dependOnInheritedWidgetOfExactType<WidgetPreviewerWindowConstraints>();
.dependOnInheritedWidgetOfExactType<
WidgetPreviewerWindowConstraints
>();
assert( assert(
result != null, result != null,
'No WidgetPreviewerWindowConstraints founds in context', 'No WidgetPreviewerWindowConstraints founds in context',
@ -348,10 +344,9 @@ class _WidgetPreviewWrapperBox extends RenderShiftedBox {
// the previewer. In this case, apply finite constraints (e.g., the // the previewer. In this case, apply finite constraints (e.g., the
// constraints for the root of the previewer). Otherwise, use the // constraints for the root of the previewer). Otherwise, use the
// widget's actual constraints. // widget's actual constraints.
_constraintOverride = _constraintOverride = minInstrinsicHeight == 0
minInstrinsicHeight == 0 ? _previewerConstraints
? _previewerConstraints : const BoxConstraints();
: const BoxConstraints();
} }
super.layout(constraints, parentUsesSize: parentUsesSize); super.layout(constraints, parentUsesSize: parentUsesSize);
} }
@ -483,18 +478,16 @@ class _WidgetPreviewScaffold extends StatelessWidget {
IconButton( IconButton(
onPressed: () => _toggleLayout(LayoutType.gridView), onPressed: () => _toggleLayout(LayoutType.gridView),
icon: Icon(Icons.grid_on), icon: Icon(Icons.grid_on),
color: color: selectedLayout == LayoutType.gridView
selectedLayout == LayoutType.gridView ? Colors.blue
? Colors.blue : Colors.black,
: Colors.black,
), ),
IconButton( IconButton(
onPressed: () => _toggleLayout(LayoutType.listView), onPressed: () => _toggleLayout(LayoutType.listView),
icon: Icon(Icons.view_list), icon: Icon(Icons.view_list),
color: color: selectedLayout == LayoutType.listView
selectedLayout == LayoutType.listView ? Colors.blue
? Colors.blue : Colors.black,
: Colors.black,
), ),
], ],
); );