Skip to content

Commit 27e7d31

Browse files
Updated flutter widgets repository with latest release source.
1 parent b59c01d commit 27e7d31

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed

packages/syncfusion_flutter_charts/lib/src/chart/chart_segment/bubble_segment.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,12 @@ class BubbleSegment extends ChartSegment {
115115
rect);
116116
_centerX = location.x;
117117
_centerY = location.y;
118-
if (bubbleSegmentProperties.seriesRenderer is BubbleSeriesRenderer)
118+
if (bubbleSegmentProperties.seriesRenderer is BubbleSeriesRenderer) {
119119
_radius = calculateBubbleRadius(
120120
seriesRendererDetails,
121121
bubbleSegmentProperties.series,
122122
bubbleSegmentProperties.currentPoint!);
123+
}
123124
bubbleSegmentProperties.currentPoint!.region = Rect.fromLTRB(
124125
location.x - 2 * _radius,
125126
location.y - 2 * _radius,

packages/syncfusion_flutter_charts/lib/src/chart/trendlines/trendlines.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,10 @@ class TrendlineRenderer {
671671
index++;
672672
}
673673
slopeIntercept = _findSlopeIntercept(xValues, yValues, points);
674-
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN)
674+
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN) {
675675
pointsData = getLinearPoints(
676676
points, xValues, yValues, seriesRendererDetails, slopeIntercept);
677+
}
677678
slopeInterceptData =
678679
_findSlopeIntercept(slopeInterceptXValues, yValues, points);
679680
}
@@ -762,9 +763,10 @@ class TrendlineRenderer {
762763
}
763764
xValues.sort();
764765
slopeIntercept = _findSlopeIntercept(xValues, yValues, points);
765-
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN)
766+
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN) {
766767
pointsData = getExponentialPoints(
767768
points, xValues, yValues, seriesRendererDetails, slopeIntercept);
769+
}
768770
slopeInterceptData =
769771
_findSlopeIntercept(slopeInterceptXValues, yValues, points);
770772
}
@@ -861,9 +863,10 @@ class TrendlineRenderer {
861863
}
862864
powerPoints.sort();
863865
slopeIntercept = _findSlopeIntercept(xValues, yValues, points);
864-
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN)
866+
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN) {
865867
pointsData = getPowerPoints(
866868
points, powerPoints, yValues, seriesRendererDetails, slopeIntercept);
869+
}
867870
slopeInterceptData =
868871
_findSlopeIntercept(slopeInterceptXValues, yValues, points);
869872
}
@@ -952,9 +955,10 @@ class TrendlineRenderer {
952955
}
953956
xPointsLgr.sort();
954957
slopeIntercept = _findSlopeIntercept(xLogValue, yLogValue, points);
955-
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN)
958+
if (!slopeIntercept.slope!.isNaN && !slopeIntercept.intercept!.isNaN) {
956959
pointsData = getLogarithmicPoints(
957960
points, xPointsLgr, yLogValue, seriesRendererDetails, slopeIntercept);
961+
}
958962
slopeInterceptData =
959963
_findSlopeIntercept(slopeInterceptXLogValue, yLogValue, points);
960964
}

packages/syncfusion_flutter_charts/lib/src/circular_chart/renderer/data_label_renderer.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ void renderOutsideDataLabel(
10691069
}
10701070
} else {
10711071
if (seriesRenderer.series.dataLabelSettings.labelIntersectAction !=
1072-
LabelIntersectAction.shift)
1072+
LabelIntersectAction.shift) {
10731073
canvas.drawPath(
10741074
connectorPath,
10751075
Paint()
@@ -1078,6 +1078,7 @@ void renderOutsideDataLabel(
10781078
: connector.color ?? point.fill.withOpacity(animateOpacity)
10791079
..strokeWidth = connector.width
10801080
..style = PaintingStyle.stroke);
1081+
}
10811082
}
10821083
}
10831084

@@ -1277,10 +1278,10 @@ String _getSegmentOverflowTrimmedText(
12771278
if (datalabelText == '') {
12781279
break;
12791280
}
1280-
if (datalabelText.length > minCharacterLength)
1281+
if (datalabelText.length > minCharacterLength) {
12811282
datalabelText =
12821283
addEllipse(datalabelText, datalabelText.length, ellipse);
1283-
else {
1284+
} else {
12841285
datalabelText = '';
12851286
break;
12861287
}

packages/syncfusion_flutter_charts/lib/src/common/user_interaction/tooltip_rendering_details.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,9 @@ class TooltipRenderingDetails {
924924
prevTooltipValue!.outlierIndex == currentTooltipValue!.outlierIndex;
925925
if (tooltipBehavior.builder != null && tooltipBounds != null) {
926926
chartTooltipState!.boundaryRect = tooltipBounds!;
927-
if (tooltipBehavior.tooltipPosition != TooltipPosition.auto)
927+
if (tooltipBehavior.tooltipPosition != TooltipPosition.auto) {
928928
_presentTooltipValue!.pointerPosition = showLocation;
929+
}
929930
if (showLocation != null) {
930931
_resolveLocation();
931932
chartTooltipState?.show(
@@ -970,8 +971,9 @@ class TooltipRenderingDetails {
970971
(currentTooltipValue == null ||
971972
tooltipBehavior.tooltipPosition == TooltipPosition.auto)) {
972973
chartTooltipState!.boundaryRect = tooltipBounds!;
973-
if (tooltipBehavior.tooltipPosition != TooltipPosition.auto)
974+
if (tooltipBehavior.tooltipPosition != TooltipPosition.auto) {
974975
_presentTooltipValue!.pointerPosition = showLocation;
976+
}
975977
if (showLocation != null) {
976978
chartTooltipState?.needMarker =
977979
_stateProperties.chart is SfCartesianChart;

packages/syncfusion_flutter_charts/lib/src/common/utils/helper.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ Widget? getElements(StateProperties stateProperties, Widget chartWidget,
221221
(context.series == toggledItem.series) ||
222222
(context.seriesRenderer.seriesName ==
223223
toggledItem.seriesRenderer.seriesName))) {
224-
if (!isTrendline || !toggledIndices.contains(i))
224+
if (!isTrendline || !toggledIndices.contains(i)) {
225225
toggledIndices.add(i);
226+
}
226227
if (!isTrendline &&
227228
context.indicatorRenderer == null &&
228229
context.series.trendlines != null) {

packages/syncfusion_flutter_charts/lib/src/pyramid_chart/utils/helper.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ String getSegmentOverflowTrimmedText(
799799
label = '';
800800
break;
801801
}
802-
if (label.length > minCharacterLength)
802+
if (label.length > minCharacterLength) {
803803
label = addEllipse(label, label.length, ellipse);
804-
else {
804+
} else {
805805
label = '';
806806
break;
807807
}

0 commit comments

Comments
 (0)