You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great tutorial! Just a minor suggestion about the VideoDescription text which displays the song details. I noticed TikTok's got a marquee-behaviour to display long song details.
@catherinetsang I would manually do it. Put the text in a scoll view, then use the controller of that view to animate the scroll position. When it gets to the end I would animated it back, pause, and then repeat.
The end position can be retrieved from the controller which will give you the max offset of the calculated scrollable area (I think). then you can use a tween between 0 and that amount to linearly interpolate the value over time. I have a video that goes over 3 animation techniques here.
Check it out and try 1 of them. The sequence animation would work well for this because then you can make your delay apart of the squence. If the comment is a bit unclear watch the video first, understand how controllers work and then come back and read this and you "should" get it. I hope.
Great tutorial! Just a minor suggestion about the VideoDescription text which displays the song details. I noticed TikTok's got a marquee-behaviour to display long song details.
I've tried 2 things: adding dependency: https://pub.dev/packages/marquee and a stack overflow solution: https://stackoverflow.com/questions/51772543/how-to-make-a-text-widget-act-like-marquee-when-the-text-overflows-in-flutter but cannot seem to get the effect working.
Do you have any suggestions on what might be a solution?
The text was updated successfully, but these errors were encountered: