INNER CODE UNIT · Dart

height

TinoGuo/pin_input_text_field · lib/src/cursor/cursor_painter.dart:18

    double height = cursor.height ?? size.height / 3;
    double width = cursor.width ?? size.width / 3;

    _cursorPaint.color = cursor.color;

    double verticalOffset = 0;
    double horizontalOffset = 0;
    Offset effectiveOffset = Offset.zero;
    switch (cursor.orientation) {
      case Orientation.horizontal:
        if (offset != null) {
          effectiveOffset = offset + Offset(height, 0);
        }
        _cursorPaint.strokeWidth = height;
        verticalOffset = cursor.offset;
        break;
      case Orientation.vertical:
        if (offset != null) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…