Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,


when i add pixel padding on a plotband then the plotbands bugs. with 4 plotbands (3 horizontal on primary Y axis and 1 vertical on primary X axis).

with5px.jpg

When paddings are added in pixels, then the plotbands disappear or the text disappears depending on where the padding is added
.


I have no problems with the operation in % (5% by example).
with5%padding.jpg



error :

The relevant error-causing widget was:

  SfCartesianChart SfCartesianChart:file:///C:/Users/xxxxxxx/xxx_part.dart:108:12

When the exception was thrown, this was the stack:

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49 throw_

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 606:63 nullCheck

packages/syncfusion_flutter_charts/src/chart/axis/plotband.dart 1083:50 [_drawPlotBand]

packages/syncfusion_flutter_charts/src/chart/axis/plotband.dart 1009:5 [_renderPlotBandElement]

packages/syncfusion_flutter_charts/src/chart/axis/plotband.dart 817:7 [_renderPlotBand]

packages/syncfusion_flutter_charts/src/chart/axis/plotband.dart 719:11 paint

packages/flutter/src/rendering/custom_paint.dart 568:12 [_paintWithPainter]

packages/flutter/src/rendering/custom_paint.dart 610:7 paint

packages/flutter/src/rendering/object.dart 2849:7 [_paintWithContext]

packages/flutter/src/rendering/object.dart 253:12 paintChild

packages/flutter/src/rendering/proxy_box.dart 146:14 paint

packages/flutter/src/rendering/object.dart 2849:7 [_paintWithContext]

packages/flutter/src/rendering/object.dart 169:10 _repaintCompositedChild

packages/flutter/src/rendering/object.dart 112:5 repaintCompositedChild

packages/flutter/src/rendering/object.dart 1110:31 flushPaint

packages/flutter/src/rendering/binding.dart 504:19 drawFrame

packages/flutter/src/widgets/binding.dart 867:13 drawFrame

packages/flutter/src/rendering/binding.dart 368:5 [_handlePersistentFrameCallback]

packages/flutter/src/scheduler/binding.dart 1286:15 [_invokeFrameCallback]

packages/flutter/src/scheduler/binding.dart 1216:9 handleDrawFrame

packages/flutter/src/scheduler/binding.dart 1074:5 [_handleDrawFrame]

lib/_engine/engine/platform_dispatcher.dart 1238:13 invoke

lib/_engine/engine/platform_dispatcher.dart 244:5 invokeOnDrawFrame

lib/_engine/engine/initialization.dart 190:45

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 367:37 _checkAndCall

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 372:39 dcall

The following RenderObject was being processed when the exception was fired: RenderCustomPaint#2d683 relayoutBoundary=up2

... parentData: (can use size)

... constraints: BoxConstraints(0.0<=w<=909.0, 0.0<=h<=260.0)

... size: Size(0.0, 0.0)

... painter: _PlotBandPainter#45268()

RenderObject: RenderCustomPaint#2d683 relayoutBoundary=up2

  parentData: (can use size)

  constraints: BoxConstraints(0.0<=w<=909.0, 0.0<=h<=260.0)

  size: Size(0.0, 0.0)

  painter: _PlotBandPainter#45268()

code_error.jpg


copy/paste error ? ^^