NavCustomPainter constructor
NavCustomPainter(
- double startingLoc,
- int itemsLength,
- Color color,
- TextDirection textDirection,
Implementation
NavCustomPainter(
double startingLoc, int itemsLength, this.color, this.textDirection) {
final span = 1.0 / itemsLength;
s = 0.2;
double l = startingLoc + (span - s) / 2;
loc = textDirection == TextDirection.rtl ? 0.8 - l : l;
}