Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a DevTools extension for package:provider #833

Closed
kenzieschmoll opened this issue Aug 18, 2023 · 3 comments
Closed

Create a DevTools extension for package:provider #833

kenzieschmoll opened this issue Aug 18, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@kenzieschmoll
Copy link
Contributor

This FR tracks the work to migrate the DevTools Provider screen over to the DevTools Extensions framework.

The tracking issue for DevTools extension support is here: flutter/devtools#1632.
The tracking issue to remove the existing provider screen from DevTools is here: flutter/devtools#6215
A draft PR to create the DevTools extension in package:provider is here: #832

It may make sense to restructure the repo to look like

provider/
|-packages/
    |-provider/  # existing provider code
    |  |-extension/
    |     |-devtools/
    |        |-build/   # build output of provider_devtools_extension flutter web app
    |        |-config.json
    |-provider_devtools_extension/   # the devtools extension web app

this would ensure the extension app is not included with the provider pub package, but rather only the build output needed for loading the devtools extension in devtools. This would also create a more scalable solution if, for example, there was a need for more sibling packages, like a provider analyzer plugin. @rrousselGit I will leave the design decision on that up to you, but that is my recommendation.

@rrousselGit
Copy link
Owner

Nice! I'll happily look into it

@kenzieschmoll
Copy link
Contributor Author

An early version of package:devtools_extensions and package:devtools_app_shared are now published to pub, which means you should be able to pull #832 down to play with without having to do some hacky configuration. That PR also includes a launch config for VS code that allows you to launch the extension in a simulated environment without having to do a full DevTools build.

The latest instructions for extension development are here: https://pub.dev/packages/devtools_extensions

@kenzieschmoll
Copy link
Contributor Author

This is complete and published on version 6.1.0-dev.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants