-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance devtools_extension documentation and example app. (#6535)
- Loading branch information
1 parent
abbe923
commit 8f059a0
Showing
9 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.67 KB
(110%)
packages/devtools_extensions/_readme_images/example_devtools_extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/devtools_extensions/example/app_that_uses_foo/.vscode/launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "app_that_uses_foo", | ||
"request": "launch", | ||
"type": "dart" | ||
}, | ||
{ | ||
"name": "app_that_uses_foo (profile mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "app_that_uses_foo (release mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
The `config.yaml` file for a DevTools extension must follow the format below. | ||
|
||
## Required fields | ||
|
||
- `name` : the package name that this DevTools extension belongs to. The value of this field | ||
will be used in the extension page title bar. | ||
- `issueTracker`: the url for the extension's issue tracker. When a user clicks the “Report an | ||
issue” link in the DevTools UI, they will be directed to this url. | ||
- `version`: the version of the DevTools extension. This version number should evolve over time | ||
as the extension is developed. The value of this field will be used in the extension page | ||
title bar. | ||
- `materialIconCodePoint`: corresponds to the codepoint value of an icon from | ||
[material/icons.dart](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/icons.dart). | ||
This icon will be used for the extension’s tab in the top-level DevTools tab bar. | ||
|
||
## Example | ||
|
||
```yaml | ||
name: foo_package | ||
issueTracker: <link_to_your_issue_tracker.com> | ||
version: 0.0.1 | ||
materialIconCodePoint: '0xe0b1' | ||
``` |