INNER CODE UNIT · Dart

width

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

    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) {
          effectiveOffset = offset + Offset(width, 0);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…