-
-
Notifications
You must be signed in to change notification settings - Fork 512
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 DevTools extension for package:provider
#832
Create DevTools extension for package:provider
#832
Conversation
Thanks for this! Is there anything specific I should look into? Maybe I'm expected to debug the error? |
I just updated #833 (comment) with an update on this work. With the latest commit, you should be able to pull down this PR and build in the simulated DevTools environment. AIs:
The failure seems flaky - maybe due to hot restart? On a fresh build of an app that uses package:provider (gallery) and the first load of the extension in the simulated devtools environment, I see the intended behavior: Eager to hear your feedback on the development workflow and any feature requests. |
Thanks for this! Would it make sense & be reasonable to publish dev release of the extension with the current state of things? (after I've had the time to play around with it a bit :) ) |
Right now the extension support in DevTools is behind an experiments flag (hoping to turn that on by end of september), so even if you publish a dev version of provider with the extension, you wouldn't be able to load it in production DevTools (i.e. you'd still have to build DevTools locally with experiments enabled to see your extension in a real DevTools instance). We are also changing the |
Great, sounds good to me. Thanks for sharing :) |
Hi @rrousselGit this is ready to go. With the latest commit, AIs 1) and 4) above should be resolved. I fixed 4) and I just haven't been able to reproduce 1). AIs 2) and 3) still stand. The latest versions of Until then, you can develop your extension locally with the Simulated DevTools environment, or build DevTools locally to test your extension against a real DevTools instance. Instructions for both are here: https://pub.dev/packages/devtools_extensions#dart--flutter-devtools-extensions. Please let me know if you have any questions or how I can help. Thanks! |
package:provider
@rrousselGit do you want to take this PR over? or do you want me to land it as, and then you can address 2) and 3) in a follow up? |
I was thinking about merging it as is, and dealing with tests/folders separately on my own. Is it fine to make a dev release with this now? I assume we could make a dev release even if it isn't on Flutter's master channel. And it'd be accessible as soon as this lands on Flutter's side |
Yes it is okay to make a dev release now. This plan SGTM. The extension support should be on Flutter master, and a more polished version of the extension support will be on master by the end of this week (I fixed a few bugs over the last few days I will release into the Dart SDK shortly). |
Alright, thanks for this! I've made a dev release (6.1.0-dev.0) with those changes. |
Ah, I gitignored the |
Looks like all is well now. I've managed to use the extension on the example app using the published Provider version. That's awesome! |
This sets up the skeleton for the DevTools extension though and moves the provider screen code from flutter/devtools to the provider repo.
New: Provider extension supplied by
package:provider
:Old: Provider screen implemented as part of DevTools:
Draft for #833