Skip to content

Commit 8005ab7

Browse files
authored
[Memory Panel] Fix canvasChartWidth has not been initialized error when changing the zoom duration (#9573)
1 parent c3f80f5 commit 8005ab7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/devtools_app/lib/src/screens/memory/panes/chart/widgets/interval_dropdown.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ class _IntervalDropdownState extends State<IntervalDropdown> {
4343
);
4444
widget.chartController.data.displayInterval = value;
4545
final duration = value.duration;
46-
4746
widget.chartController.event.zoomDuration = duration;
4847
widget.chartController.vm.zoomDuration = duration;
49-
widget.chartController.android.zoomDuration = duration;
48+
if (widget.chartController.isAndroidChartVisible.value) {
49+
widget.chartController.android.zoomDuration = duration;
50+
}
5051
});
5152
},
5253
items: displayTypes,

packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ TODO: Remove this section if there are not any general updates.
3232

3333
## Memory updates
3434

35-
TODO: Remove this section if there are not any general updates.
35+
- Fixed error preventing users from changing the zoom duration. -
36+
[#9573](https://github.com/flutter/devtools/pull/9573)
3637

3738
## Debugger updates
3839

0 commit comments

Comments
 (0)