devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Select widget is reloading the app

Open 876arham opened this issue 4 years ago • 5 comments
trafficstars

When i click on select widget mode in dart devtools, my app is reloaded and it navigates back to home screen , so technically i am not able to use select widget on any page other that home page because it is restarting the app and navigating back to the home page.

876arham avatar Jul 28 '21 14:07 876arham

Thanks for the report. As a workaround, once you enable Select Widget Mode from DevTools and your app hot restarts, there should be a little blue floating button in the bottom left corner of your app. You can navigate around in your app and once you are ready to select a widget, tap the blue floating button, and select the widget you want to inspect.

kenzieschmoll avatar Jul 28 '21 16:07 kenzieschmoll

Thanks , it is a good work around, but can you explain why is this issue happening in my pc , while the same app works well for others in dartdevtools

876arham avatar Jul 29 '21 10:07 876arham

Are you saying that other people can enable select widget mode without triggering a hot restart in their development environment? Are you developing on windows? can you paste the output of flutter doctor -v here?

kenzieschmoll avatar Jul 29 '21 15:07 kenzieschmoll

This is a buggy experience for DevTools developers as well, since our app is also a Flutter app.

kenzieschmoll avatar Jul 01 '22 22:07 kenzieschmoll

I'm using go_router and facing the same issue. I'm using a global variable, so it is the same object. Devtools throws all previous screen states :( So frustrating when using widget select mode with Navigator 2.0.

definev avatar Oct 10 '22 10:10 definev

Any updates for this issue? It is does not depend on exact navigator api usage, it happen even in hello world app. Code sample is in duplicated issue https://github.com/flutter/flutter/issues/130385

mozochek avatar Jul 12 '23 08:07 mozochek