Skip to content

Commit

Permalink
Set the show = true for error indicator lines
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Jan 9, 2025
1 parent addafb8 commit 9da7d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ class _LineChartSample2State extends State<LineChartSample2> {
show: false,
),
errorIndicatorData: FlErrorIndicatorData(
show: true,
painter: (
FlSpot spot,
LineChartBarData bar,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/chart/base/axis_chart/axis_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ class FlDotCrossPainter extends FlDotPainter {

class FlErrorIndicatorData with EquatableMixin {
const FlErrorIndicatorData({
this.show = false,
this.show = true,
this.painter = _defaultGetSpotRangeErrorPainter,
});

Expand Down Expand Up @@ -1737,7 +1737,7 @@ abstract class FlSpotErrorRangePainter with EquatableMixin {
class FlSimpleErrorPainter extends FlSpotErrorRangePainter with EquatableMixin {
FlSimpleErrorPainter({
this.lineColor = Colors.white,
this.lineWidth = 2.0,
this.lineWidth = 1.0,
this.capLength = 8.0,
}) {
_linePaint = Paint()
Expand Down

0 comments on commit 9da7d68

Please sign in to comment.