Fix navigation bug when opening the VM flags dialog (#8413)
diff --git a/packages/devtools_app/lib/src/shared/ui/vm_flag_widgets.dart b/packages/devtools_app/lib/src/shared/ui/vm_flag_widgets.dart index 30a359c..4cdae9a 100644 --- a/packages/devtools_app/lib/src/shared/ui/vm_flag_widgets.dart +++ b/packages/devtools_app/lib/src/shared/ui/vm_flag_widgets.dart
@@ -130,7 +130,6 @@ gaSelection: gac.HomeScreenEvents.viewVmFlags.name, minScreenWidthForTextBeforeScaling: minScreenWidthForTextBeforeScaling, onPressed: () { - Navigator.of(context, rootNavigator: true).pop('dialog'); unawaited( showDialog( context: context,
diff --git a/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md b/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md index 14ec4e3..f1c2f28 100644 --- a/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md +++ b/packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
@@ -34,6 +34,9 @@ * Fixed a bug that was causing data filters to be cleared when clearing data on the Network and Logging screens. - [#8407](https://github.com/flutter/devtools/pull/8407) +* Fixed a bug that was causing the navigator to lose state when opening the VM +Flags dialog. - [#8413](https://github.com/flutter/devtools/pull/8413) + ## Inspector updates - Added a setting to the Flutter Inspector controls that allows users to opt-in to the newly redesigned Flutter Inspector. - [#8342](https://github.com/flutter/devtools/pull/8342)