We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4bb7dd commit d00c7cdCopy full SHA for d00c7cd
lib/chart/render/data_renderer/chart_linear_data_renderer.dart
@@ -210,9 +210,11 @@ class _ChartLinearItemRenderer<T> extends ChartItemRenderer<T>
210
211
final innerConstraints = BoxConstraints.tightFor(
212
width: _stackWidth,
213
- height: ((child.item.max ?? 0.0) * _verticalMultiplier) -
214
- (bottomPaddingHeight * _verticalMultiplier) -
215
- (chartState.data.minValue * _verticalMultiplier));
+ height: max(
+ ((child.item.max ?? 0.0) * _verticalMultiplier) -
+ (bottomPaddingHeight * _verticalMultiplier) -
216
+ (chartState.data.minValue * _verticalMultiplier),
217
+ 0));
218
219
child.layout(innerConstraints, parentUsesSize: true);
220
}
0 commit comments