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