From e81b7a56e45a72c28322890408d7089a1247a62e Mon Sep 17 00:00:00 2001 From: WorldpixelSoftware Date: Sun, 15 Oct 2023 23:11:35 +0200 Subject: [PATCH] Added UserManagedState to Combo charts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Combo charts did not include UserManagedState in constructor, which made it impossible to create e.g. a popup on the selected line datum. •Added UserManagedState variable to be passed down into the super constructor on NumericComboChart and OrdinalComboChart --- .../lib/src/combo_chart/combo_chart.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/community_charts_flutter/lib/src/combo_chart/combo_chart.dart b/community_charts_flutter/lib/src/combo_chart/combo_chart.dart index 72541b7..6061b5c 100644 --- a/community_charts_flutter/lib/src/combo_chart/combo_chart.dart +++ b/community_charts_flutter/lib/src/combo_chart/combo_chart.dart @@ -27,6 +27,7 @@ import '../base_chart.dart' show LayoutConfig; import '../base_chart_state.dart' show BaseChartState; import '../cartesian_chart.dart' show CartesianChart; import '../selection_model_config.dart' show SelectionModelConfig; +import '../user_managed_state.dart'; /// A numeric combo chart supports rendering each series of data with different /// series renderers. @@ -48,6 +49,7 @@ class NumericComboChart extends CartesianChart { List>? selectionModels, common.RTLSpec? rtlSpec, LayoutConfig? layoutConfig, + UserManagedState? userManagedState, bool defaultInteractions = true, }) : super( seriesList, @@ -62,6 +64,7 @@ class NumericComboChart extends CartesianChart { selectionModels: selectionModels, rtlSpec: rtlSpec, layoutConfig: layoutConfig, + userManagedState: userManagedState, defaultInteractions: defaultInteractions, ); @@ -93,6 +96,7 @@ class OrdinalComboChart extends CartesianChart { List>? selectionModels, common.RTLSpec? rtlSpec, LayoutConfig? layoutConfig, + UserManagedState? userManagedState, bool defaultInteractions = true, }) : super( seriesList, @@ -107,6 +111,7 @@ class OrdinalComboChart extends CartesianChart { selectionModels: selectionModels, rtlSpec: rtlSpec, layoutConfig: layoutConfig, + userManagedState: userManagedState, defaultInteractions: defaultInteractions, );