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
424 stars 117 forks source link

Paint is not always complete #19

Closed jrheisler closed 2 years ago

jrheisler commented 3 years ago

I noticed with some graphs when you zoom you lose part of the painting:

This is with graphview: ^0.6.5 Flutter (Channel beta, 1.24.0-10.2.pre, on Microsoft Windows [Version 10.0.19041.685], locale en-US)

Screenshot (231)

Screenshot (230)

jrheisler commented 3 years ago

Fyi, this only happens when you pan and zoom are allowed.

nabil6391 commented 3 years ago

Ok will have a look

mikeborodin commented 3 years ago

Any updates or fixes for this issue? I have similar black artifacts when zoomin in.

version ^0.6.6 Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, 1.25.0-8.3.pre, on macOS 11.1 20C69 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] Android Studio [✓] VS Code (version 1.52.1) [✓] Connected device (3 available)

image

nabil6391 commented 3 years ago

I always had an issue with the Zooming of the libary. Did not come to the reason or ways to solve it.

Was this ok in earlier versions of graphview?

jrheisler commented 3 years ago

Hopefully Mike knows, as I too have never had much luck with zooming. I have instead gone with changing the size of the nodes and the space between them.

nabil6391 commented 3 years ago

I am interested to help if someone can put in a working code for me to test out.

jrheisler commented 3 years ago

It might even have to do with the shadowing on the container that is the node. I have taken to using a slider and resizing the container/node with the slider. It seems like the InteractiveViewer is the issue.

nabil6391 commented 2 years ago

I am closing this ticket. Hoping this is not relevant anymore