nabil6391 / graphview

Flutter GraphView is used to display data in graph structures. It can display Tree layout, Directed and Layered graph. Useful for Family Tree, Hierarchy View.
MIT License
420 stars 114 forks source link

how to let the graph scroll while has more nodes,but not zoom #58

Closed xiaobingcaicai closed 2 years ago

xiaobingcaicai commented 2 years ago

i dont want to let the graph zoom small,but want to the graph can scrool left to right,or top to bottom while i have lots of nodes to show,how can i do it?

xiaobingcaicai commented 2 years ago

my node size is fixed(like 100 * 100),and when i have more node,the graph will not show some nodes

nabil6391 commented 2 years ago

https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html

You can set scaleEnabled to false in InteractiveViewer to disable zoom

xiaobingcaicai commented 2 years ago

https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html

You can set scaleEnabled to false in InteractiveViewer to disable zoom

but can not show all my node widget ,and i also can not scroll to display the nodes that be hided

xiaobingcaicai commented 2 years ago

https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html

You can set scaleEnabled to false in InteractiveViewer to disable zoom

i can show all my node ,but when i control node to center in this way https://github.com/nabil6391/graphview/issues/24#issuecomment-778092126, if i show tree center, i can not show all node, if i can show all node,i can not show the tree center

nabil6391 commented 2 years ago

maybe can try the approach mentioned in #47