Skip to content

Commit 09a52c3

Browse files
committed
feat: add custom node builder support and improve node theming
1 parent 8f98424 commit 09a52c3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

website/.vitepress/theme/CustomHome.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class _SimpleFlowEditorState extends State<SimpleFlowEditor> {
6464
@override
6565
Widget build(BuildContext context) => NodeFlowEditor<String>( // [!code focus]
6666
controller: controller, // [!code focus]
67-
theme: NodeFlowTheme.light, // [!code focus]
68-
nodeBuilder: (context, node) => Container(
67+
theme: NodeFlowTheme.light,
68+
nodeBuilder: (context, node) => Container( // [!code focus]
6969
padding: const EdgeInsets.all(16),
7070
decoration: BoxDecoration(
7171
color: Colors.white,
@@ -90,6 +90,12 @@ const codeMarkers = [
9090
description:
9191
'The Flutter widget that renders the visual editor. Features include pan & zoom, node dragging, connection creation, selection, and customizable theming.',
9292
},
93+
{
94+
line: 41,
95+
title: 'Custom Node Builder',
96+
description:
97+
'Create custom nodes and appearances using any Flutter widget. Full control over node styling, content, and interactions.',
98+
},
9399
];
94100
95101
// Marquee content

0 commit comments

Comments
 (0)