Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace vertex node with custom widget / image #8

Open
muknta opened this issue Jun 5, 2024 · 3 comments
Open

Replace vertex node with custom widget / image #8

muknta opened this issue Jun 5, 2024 · 3 comments

Comments

@muknta
Copy link
Contributor

muknta commented Jun 5, 2024

Is there any plan to do?

I was trying to modify library by myself, but the problem that it's so sticked architecturally to the vertex. So I need to change all dependencies across almost all files

@CorvusYe
Copy link
Member

CorvusYe commented Jun 5, 2024

@muknta

I also need pictures, but it may take some time before I can start construction.


Maybe you can refer to this: https://github.com/graph-cn/flutter_graph_view/blob/main/example/lib/demos/custom_shape_demo/execution_plan/plan_node_shape.dart

class CustomNodeShape extends VertexShape {
   // ... You can use paint in the render method to do anything
}
    Options()
        ..vertexShape = CustomNodeShape()

@CorvusYe
Copy link
Member

CorvusYe commented Jun 5, 2024

https://graph-cn.github.io/flutter_graph_view/
Displaying cases under the ExecutePlan tab

@muknta
Copy link
Contributor Author

muknta commented Jun 5, 2024

@CorvusYe thanks for you suggestions! I will try to make this way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants