How get moving text in widget with given width

前端 未结 2 1822
广开言路
广开言路 2021-01-03 13:22

I am building a radio app. Like in Spotify, there is a bar with the current title and artist, the text should be in one line and in a given width. How can I let the text mov

2条回答
  •  猫巷女王i
    2021-01-03 13:49

    use this widget from pub.dev marquee.

    Marquee(
      text: 'There once was a boy who told this story about a boy: "',
    )
    

提交回复
热议问题