light property

NodeFlowTheme light
final

Built-in light theme with bright colors and subtle grid.

Suitable for applications with light backgrounds. Features:

  • White background
  • Light grey dot grid
  • Blue selection and highlights
  • Black text and borders

Implementation

static final light = NodeFlowTheme(
  nodeTheme: NodeTheme.light,
  connectionTheme: ConnectionTheme.light,
  temporaryConnectionTheme: ConnectionTheme.light.copyWith(
    color: Color(0xFF666666),
    startPoint: ConnectionEndPoint.none,
    endPoint: ConnectionEndPoint.capsuleHalf,
    dashPattern: [5, 5],
  ),
  portTheme: PortTheme.light,
  labelTheme: LabelTheme.light,
  backgroundColor: Colors.white,
  gridColor: Color(0xFFC8C8C8),
  gridSize: 20.0,
  gridThickness: 1,
  gridStyle: GridStyles.dots,
  selectionColor: Color(0x3300BCD4),
  selectionBorderColor: Color(0xFF00BCD4),
  selectionBorderWidth: 1.0,
  cursorStyle: SystemMouseCursors.grab,
  dragCursorStyle: SystemMouseCursors.grabbing,
  nodeCursorStyle: SystemMouseCursors.click,
  portCursorStyle: SystemMouseCursors.precise,
);