marquee icon indicating copy to clipboard operation
marquee copied to clipboard

How to add Image and Link on Marquee

Open gofur opened this issue 6 years ago • 2 comments

How to add Image and Link on Marquee

gofur avatar Jan 15 '19 11:01 gofur

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.

MarcelGarus avatar Jan 15 '19 19:01 MarcelGarus

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.

Why i can't find texts property? Would you show me a example.Thanks

gitfornncn avatar Sep 28 '19 17:09 gitfornncn