fix: use FlTapUpEvent to reset pie chart selection
This commit is contained in:
@@ -52,7 +52,8 @@ class SpendingPieChart extends StatelessWidget {
|
||||
pieTouchResponse == null ||
|
||||
pieTouchResponse.touchedSection == null) {
|
||||
// If touch ends or no section is touched, reset selection
|
||||
if (event is FlPointerUpEvent || event is FlPanEndEvent) {
|
||||
// Используем FlTapUpEvent вместо FlPointerUpEvent
|
||||
if (event is FlTapUpEvent || event is FlPanEndEvent) {
|
||||
onSelectPieCategory(-1);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user