timeline_editor icon indicating copy to clipboard operation
timeline_editor copied to clipboard

Zoom amount is not enough when using with large durations

Open nipunasudha opened this issue 5 years ago • 4 comments

When the total duration of the timeline is about 200 days, this is the maximum zoom possible.

Screenshot_20200528-144638_Project_Manager_Dev

Is there any way I can provide max & min zoom levels?

Note: I noticed a pixelPerSeconds measure throughout the plugin source. Would that be an appropriate measure for larger durations? Could it introduce problems due to double accuracy?

Edit: Oh wait, there is no zoom limit. I can zoom more and more, but each time I zoom, it zooms less and less. At the end it gets really laggy and I have to do the zoom gesture multiple times to zoom even a little bit. And the app freezes after that.

I don't know the reason for this, but if the reason is Flutter being overwhelmed by the length of the TimelineEditorBox, you may have to render only the part of the TimelineEditorBox that is visible by dynamically resizing the Box just enough to cover the visible width. When the user scrolls, the box size & position should readjust.

A double variable reaching 0 or Inf could also be the reason for this behavior.

nipunasudha avatar May 28 '20 09:05 nipunasudha

Thanks for the report. I don’t deal with big timeline so I didn’t saw this issue. I will look into it

neckaros avatar May 28 '20 19:05 neckaros

Sorry I have a lot of work so I could not spend much time on this.

I have a version in development that use a list builder for better performance. I just need to fix a scroll offset mismatch between time indicator and elements when zooming

neckaros avatar Jun 17 '20 20:06 neckaros

Sorry I have a lot of work so I could not spend much time on this.

I have a version in development that use a list builder for better performance. I just need to fix a scroll offset mismatch between time indicator and elements when zooming

Thank you for the update. Is it on master? I can fork and try to fix it.

nipunasudha avatar Jun 18 '20 08:06 nipunasudha

i uploaded it to master. I will try to spend time on it next week

neckaros avatar Jun 28 '20 15:06 neckaros