flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Select widget is reloading the app #3223

Open 876arham opened 3 years ago

876arham commented 3 years ago

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.

kenzieschmoll commented 3 years ago

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.

876arham commented 3 years ago

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

kenzieschmoll commented 3 years ago

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 commented 2 years ago

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

definev commented 2 years ago

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.

mozochek commented 1 year ago

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