INNER CODE UNIT · Dart

left

OpenFlutter/k_chart · lib/depth_chart.dart:341

      left = mWidth - priceTP.width;
    } else {
      left = dx - priceTP.width / 2;
    }
    Rect bottomRect = Rect.fromLTRB(left - 3, mDrawHeight + 3,
        left + priceTP.width + 3, mDrawHeight + mPaddingBottom);
    canvas.drawRect(bottomRect, selectPaint!);
    canvas.drawRect(bottomRect, selectBorderPaint!);
    priceTP.paint(
        canvas,
        Offset(bottomRect.left + (bottomRect.width - priceTP.width) / 2,
            bottomRect.top + (bottomRect.height - priceTP.height) / 2));
    //画左边
    TextPainter amountTP =
        getTextPainter(entity.vol.toStringAsFixed(fixedLength!));
    amountTP.layout();
    double y = getY(entity.vol);
    double rightRectTop;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…