NodeFlowTheme constructor
const
NodeFlowTheme({
- required NodeTheme nodeTheme,
- required ConnectionTheme connectionTheme,
- required ConnectionTheme temporaryConnectionTheme,
- Duration connectionAnimationDuration = const Duration(seconds: 2),
- required PortTheme portTheme,
- required LabelTheme labelTheme,
- Color backgroundColor = Colors.white,
- Color gridColor = const Color(0xFF919191),
- double gridSize = 20.0,
- double gridThickness = 0.5,
- GridStyle gridStyle = GridStyles.dots,
- Color selectionColor = const Color(0x3300BCD4),
- Color selectionBorderColor = const Color(0xFF00BCD4),
- double selectionBorderWidth = 1.0,
- SystemMouseCursor cursorStyle = SystemMouseCursors.basic,
- SystemMouseCursor dragCursorStyle = SystemMouseCursors.grabbing,
- SystemMouseCursor nodeCursorStyle = SystemMouseCursors.click,
- SystemMouseCursor portCursorStyle = SystemMouseCursors.precise,
- bool debugMode = false,
Implementation
const NodeFlowTheme({
required this.nodeTheme,
required this.connectionTheme,
required this.temporaryConnectionTheme,
this.connectionAnimationDuration = const Duration(seconds: 2),
required this.portTheme,
required this.labelTheme,
this.backgroundColor = Colors.white,
this.gridColor = const Color(0xFF919191),
this.gridSize = 20.0,
this.gridThickness = 0.5,
this.gridStyle = GridStyles.dots,
this.selectionColor = const Color(0x3300BCD4),
this.selectionBorderColor = const Color(0xFF00BCD4),
this.selectionBorderWidth = 1.0,
this.cursorStyle = SystemMouseCursors.basic,
this.dragCursorStyle = SystemMouseCursors.grabbing,
this.nodeCursorStyle = SystemMouseCursors.click,
this.portCursorStyle = SystemMouseCursors.precise,
this.debugMode = false,
});