diff --git a/charts_flutter/lib/src/base_chart_state.dart b/charts_flutter/lib/src/base_chart_state.dart index b4015bc3d..403388002 100644 --- a/charts_flutter/lib/src/base_chart_state.dart +++ b/charts_flutter/lib/src/base_chart_state.dart @@ -68,7 +68,9 @@ class BaseChartState extends State> @override void requestRebuild() { - setState(() {}); + if (mounted) { + setState(() {}); + } } @override