I’m working on an educational app (something like Udemy) that was built with Flutter. I need to add a text watermark on the YouTube player iframe.
I’m using stack widget to put the text over video player, and it’s working fine in normal mode, but I don’t know how to do it in fullscreen. Can I do it with stack widget or any other way?
2
Answers
You can wrap your watermark
Text
widget in aPositioned
widget and set its position based on the dimensions of the device screen usingMediaQuery
.Something like this:
try this solution : first wrap your player with stack like this :
and here is the WaterMarkWidget :