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 < 3 || (index > 45 && index < 49) || index > 91) {
return h + fontHeight / 2 + textPadding;
}
return h;
}