Hey, I have a flutter app for web that I want to embed into a Webflow page.
I want to the embed to be "seemless" in the parent page.
To do that, what I usually do is :
- I send a message, via postMessage, to the parent with the clientHeight or offsetHeight of the embedded page
- the parent page resize the iframe so the iframe is not scrollable and height is dynamically updated
Get page size, to send it to iframe parent ?
Troubleshooting
I've tried try... but the issue I have is that the flutterview seems to take the size of the parent..
So it returns the size of the iframe, not the size of the page..
So, when I initialize my iframe with a height of 0px, the postMessage from flutter returns 0...
Hope I'm clear ๐
Any ideas / suggestions ?
Yes
2