Skip to content

Commit

Permalink
fix display pivots
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Jun 6, 2024
1 parent 6ded20e commit efa0a81
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions lib/src/flow_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,31 @@ class FlowChart extends StatefulWidget {

/// callback for element pressed
final void Function(
BuildContext context, Offset position, FlowElement element)?
onElementPressed;
BuildContext context,
Offset position,
FlowElement element,
)? onElementPressed;

/// callback for mouse right click event on an element
final void Function(
BuildContext context, Offset position, FlowElement element)?
onElementSecondaryTapped;
BuildContext context,
Offset position,
FlowElement element,
)? onElementSecondaryTapped;

/// callback for element long pressed
final void Function(
BuildContext context, Offset position, FlowElement element)?
onElementLongPressed;
BuildContext context,
Offset position,
FlowElement element,
)? onElementLongPressed;

/// callback for right click long press event on an element
final void Function(
BuildContext context, Offset position, FlowElement element)?
onElementSecondaryLongTapped;
BuildContext context,
Offset position,
FlowElement element,
)? onElementSecondaryLongTapped;

/// callback for onclick event of pivot
final void Function(BuildContext context, Pivot pivot)? onPivotPressed;
Expand Down Expand Up @@ -329,7 +337,6 @@ class _FlowChartState extends State<FlowChart> {
arrowParams: widget.dashboard.elements[i].next[n].arrowParams,
pivots: widget.dashboard.elements[i].next[n].pivots,
),
if (widget.dashboard.defaultArrowStyle == ArrowStyle.segmented)
// drawing segment handlers
for (int i = 0; i < widget.dashboard.elements.length; i++)
for (int n = 0; n < widget.dashboard.elements[i].next.length; n++)
Expand Down

0 comments on commit efa0a81

Please sign in to comment.