INNER CODE UNIT · Dart

bottomStart

softmarshmallow/flutter-timeline · lib/timeline.dart:281

      Offset bottomStart = indicatorCenter.translate(0, radius + lineGap);
      if (!isLast) canvas.drawLine(bottomStart, bottomEnd, linePaint);
    }
    // endregion downer line
  }

  double getAdditionalY(double height, {required String mode}) {
    double add = 0;
    // the additional size should be
    if (mode == "upper") {
      switch (indicatorPosition) {
        case IndicatorPosition.top:
          add = 0;
          break;
        case IndicatorPosition.center:
          add = (height - indicatorSize) / 2;
          break;
        case IndicatorPosition.bottom:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…