marquee
marquee copied to clipboard
How to add Image and Link on Marquee
How to add Image and Link on Marquee
This is not supported yet. For now, the Marquee
only accepts String
s as the text
or texts
properties.
If you find a way to implement this feature for links and images, you're welcome to submit a PR.
The problem with accepting custom widgets is that their width can't easily be estimated in advance. For the text, we currently use a TextPainter
to calculate the width, which is needed for proper acceleration/deceleration curves for smooth pauses.
This is not supported yet. For now, the
Marquee
only acceptsString
s as thetext
ortexts
properties. If you find a way to implement this feature for links and images, you're welcome to submit a PR. The problem with accepting custom widgets is that their width can't easily be estimated in advance. For the text, we currently use aTextPainter
to calculate the width, which is needed for proper acceleration/deceleration curves for smooth pauses.
Why i can't find texts property? Would you show me a example.Thanks