getHeight method
double
getHeight(
- int index,
- int count,
- double width,
- double height,
- double fontHeight,
- double textPadding,
- bool drawText,
override
Get the bar height for a specific index
Implementation
@override
double getHeight(
int index,
int count,
double width,
double height,
double fontHeight,
double textPadding,
bool drawText,
) {
if (!drawText) {
return super.getHeight(
index,
count,
width,
height,
fontHeight,
textPadding,
drawText,
);
}
final h = height - fontHeight - textPadding;
if (index + count < 4 || index > 44) {
return h + fontHeight / 2 + textPadding;
}
return h;
}