dark property

NodeFlowTheme dark
final

Built-in dark theme with muted colors and visible grid.

Suitable for applications with dark backgrounds. Features:

  • Dark grey background
  • Medium grey dot grid
  • Light blue selection and highlights
  • Light text and borders

Implementation

static final dark = NodeFlowTheme(
  nodeTheme: NodeTheme.dark,
  connectionTheme: ConnectionTheme.dark,
  temporaryConnectionTheme: ConnectionTheme.dark.copyWith(
    color: Color(0xFF999999),
    startPoint: ConnectionEndPoint.none,
    endPoint: ConnectionEndPoint.capsuleHalf,
    dashPattern: [5, 5],
  ),
  portTheme: PortTheme.dark,
  labelTheme: LabelTheme.dark,
  annotationTheme: AnnotationTheme.dark,
  gridTheme: GridTheme.dark,
  selectionTheme: SelectionTheme.dark,
  cursorTheme: CursorTheme.dark,
  backgroundColor: const Color(0xFF1A1A1A),
);