I injected css into an InAppWebView component in Flutter, what hides content on a page but the content appears for a bit. I tried contentBlockers in options to block the css selector and injecting css in the events of onLoadStart, onLoadStop, onWebViewCreated and onProgressChanged but I couldn't solve the flickering issue.
How can I inject the css before the page appears on the screen without content flickering?