Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/devtools/lib/devtools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
/// The DevTools application version.
// Note: when updating this, please update the corresponding version in the
// pubspec.
const String version = '0.0.14';
const String version = '0.0.15-dev.2';
4 changes: 2 additions & 2 deletions packages/devtools/lib/src/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ class PerfToolFramework extends Framework {
? 'This screen is disabled because you are not running a Flutter '
'application'
: 'This screen is disabled because you are running a profile build '
'of your application',
'of your application',
));
addScreen(TimelineScreen(
disabled: !_isFlutterApp,
disabledTooltip: _isFlutterWebApp
? 'This screen is disabled because it is not yet ready for Flutter'
' Web'
: 'This screen is disabled because you are not running a '
'Flutter application',
'Flutter application',
));
addScreen(MemoryScreen(
disabled: _isFlutterWebApp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ class Radius {
return x == y
? 'Radius.circular(${x.toStringAsFixed(1)})'
: 'Radius.elliptical(${x.toStringAsFixed(1)}, '
'${y.toStringAsFixed(1)})';
'${y.toStringAsFixed(1)})';
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/devtools/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A suite of web-based performance tooling for Dart and Flutter.

# Note: when updating this version, please update the corresponding entry in
# lib/devtools.dart.
version: 0.0.14
version: 0.0.15-dev.2

author: Dart Team <[email protected]>
homepage: https://github.com/flutter/devtools
Expand Down Expand Up @@ -44,7 +44,7 @@ dependencies:
# path: ../../third_party/packages/plotly

dev_dependencies:
build_runner: ^1.0.0
build_runner: ^1.3.0
build_web_compilers: any
matcher: ^0.12.3
test: ^1.0.0
Expand Down
70 changes: 35 additions & 35 deletions packages/devtools/test/inspector_controller_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ void main() async {
tree.toStringDeep(),
equalsIgnoringHashCodes(
'▼[R] root ]\n'
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
));

expect(
Expand Down Expand Up @@ -464,13 +464,13 @@ void main() async {
tree.toStringDeep(),
equalsIgnoringHashCodes(
'▼[R] root ]\n'
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold <-- selected\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold <-- selected\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
));

await detailsTree.nextUiFrame;
Expand All @@ -490,13 +490,13 @@ void main() async {
tree.toStringDeep(),
equalsIgnoringHashCodes(
'▼[R] root ]\n'
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center <-- selected\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center <-- selected\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
));

await detailsTree.nextUiFrame;
Expand All @@ -513,13 +513,13 @@ void main() async {
tree.toStringDeep(),
equalsIgnoringHashCodes(
'▼[R] root ]\n'
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold <-- selected\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold <-- selected\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
));

// Verify that the details tree scrolled back as well.
Expand Down Expand Up @@ -552,13 +552,13 @@ void main() async {
tree.toStringDeep(),
equalsIgnoringHashCodes(
'▼[R] root ]\n'
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
' ▼[M] MyApp\n'
' ▼[M] MaterialApp\n'
' ▼[S] Scaffold\n'
' ├───▼[C] Center\n'
' │ ▼[/icons/inspector/textArea.png] Text\n'
' └─▼[A] AppBar\n'
' ▼[/icons/inspector/textArea.png] Text\n',
));

// TODO(jacobr): would be nice to have some tests that trigger a hot
Expand Down
94 changes: 47 additions & 47 deletions packages/devtools/test/inspector_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ void main() async {
treeToDebugString(root),
equalsIgnoringHashCodes(
'[root]\n'
' └─MyApp\n'
' └─MaterialApp\n'
' └─Scaffold\n'
' ├─Center\n'
' │ └─Text\n'
' └─AppBar\n'
' └─Text\n',
' └─MyApp\n'
' └─MaterialApp\n'
' └─Scaffold\n'
' ├─Center\n'
' │ └─Text\n'
' └─AppBar\n'
' └─Text\n',
),
);
RemoteDiagnosticsNode nodeInSummaryTree =
Expand All @@ -119,11 +119,11 @@ void main() async {
treeToDebugString(nodeInSummaryTree),
equalsIgnoringHashCodes(
'MaterialApp\n'
' └─Scaffold\n'
' ├─Center\n'
' │ └─Text\n'
' └─AppBar\n'
' └─Text\n',
' └─Scaffold\n'
' ├─Center\n'
' │ └─Text\n'
' └─AppBar\n'
' └─Text\n',
),
);
RemoteDiagnosticsNode nodeInDetailsTree =
Expand All @@ -149,22 +149,22 @@ void main() async {
treeToDebugString(nodeInDetailsTree),
equalsIgnoringHashCodes(
'Text\n'
' │ data: "Hello, World!"\n'
' │ textAlign: null\n'
' │ textDirection: null\n'
' │ locale: null\n'
' │ softWrap: null\n'
' │ overflow: null\n'
' │ textScaleFactor: null\n'
' │ maxLines: null\n'
' │ dependencies: [DefaultTextStyle, MediaQuery]\n'
' │\n'
' └─RichText\n'
' softWrap: wrapping at box width\n'
' maxLines: unlimited\n'
' text: "Hello, World!"\n'
' dependencies: [_LocalizationsScope-[GlobalKey#00000], Directionality]\n'
' renderObject: RenderParagraph#00000 relayoutBoundary=up2\n',
' │ data: "Hello, World!"\n'
' │ textAlign: null\n'
' │ textDirection: null\n'
' │ locale: null\n'
' │ softWrap: null\n'
' │ overflow: null\n'
' │ textScaleFactor: null\n'
' │ maxLines: null\n'
' │ dependencies: [DefaultTextStyle, MediaQuery]\n'
' │\n'
' └─RichText\n'
' softWrap: wrapping at box width\n'
' maxLines: unlimited\n'
' text: "Hello, World!"\n'
' dependencies: [_LocalizationsScope-[GlobalKey#00000], Directionality]\n'
' renderObject: RenderParagraph#00000 relayoutBoundary=up2\n',
),
);
expect(nodeInDetailsTree.valueRef, equals(nodeInSummaryTree.valueRef));
Expand All @@ -178,7 +178,7 @@ void main() async {
treeToDebugString(selection),
equalsIgnoringHashCodes(
'Text\n'
' └─RichText\n',
' └─RichText\n',
),
);

Expand All @@ -189,7 +189,7 @@ void main() async {
treeToDebugString(selection),
equalsIgnoringHashCodes(
'RenderParagraph#00000 relayoutBoundary=up2\n'
' └─text: TextSpan\n',
' └─text: TextSpan\n',
),
);

Expand All @@ -212,7 +212,7 @@ void main() async {
treeToDebugString(root),
equalsIgnoringHashCodes(
'RenderView#00000\n'
' └─child: RenderSemanticsAnnotations#00000\n',
' └─child: RenderSemanticsAnnotations#00000\n',
),
);
final child = findNodeMatching(root, 'RenderSemanticsAnnotations');
Expand All @@ -222,21 +222,21 @@ void main() async {
treeToDebugString(childDetailsSubtree),
equalsIgnoringHashCodes(
'child: RenderSemanticsAnnotations#00000\n'
' │ parentData: <none>\n'
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n'
' │ size: Size(800.0, 600.0)\n'
' │\n'
' └─child: RenderCustomPaint#00000\n'
' │ parentData: <none> (can use size)\n'
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n'
' │ size: Size(800.0, 600.0)\n'
' │\n'
' └─child: RenderPointerListener#00000\n'
' parentData: <none> (can use size)\n'
' constraints: BoxConstraints(w=800.0, h=600.0)\n'
' size: Size(800.0, 600.0)\n'
' behavior: deferToChild\n'
' listeners: down, up, cancel\n',
' │ parentData: <none>\n'
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n'
' │ size: Size(800.0, 600.0)\n'
' │\n'
' └─child: RenderCustomPaint#00000\n'
' │ parentData: <none> (can use size)\n'
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n'
' │ size: Size(800.0, 600.0)\n'
' │\n'
' └─child: RenderPointerListener#00000\n'
' parentData: <none> (can use size)\n'
' constraints: BoxConstraints(w=800.0, h=600.0)\n'
' size: Size(800.0, 600.0)\n'
' behavior: deferToChild\n'
' listeners: down, up, cancel\n',
),
);

Expand All @@ -249,7 +249,7 @@ void main() async {
treeToDebugString(selection),
equalsIgnoringHashCodes(
'RenderSemanticsAnnotations#00000\n'
' └─child: RenderCustomPaint#00000\n',
' └─child: RenderCustomPaint#00000\n',
),
);
});
Expand Down