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 Strings 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
Marqueeonly acceptsStrings as thetextortextsproperties. 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 aTextPainterto 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