Advanced Topics With WebViews
summary
Compares webview_flutter and flutter_inappwebview, shows code that measures the page with document.body.offsetHeight and document.body.offsetWidth then sets Flutter widget size via controller.evaluateJavascript, demonstrates injecting CSS or Google Fonts or base64 fonts to match app typography, and explains preloading a controller and using automatic keepalive to cut load time from seconds to near instant in release. Describes editing challenges, custom-modified HTML editor used to support quoted replies, and an Android transition glitch fixed by using Cupertino-style transitions and a preload controller.
AI-written summary · about
chapters (11)
- 0:00Intro
- 2:26You can use Widgets to display HTML
- 4:22Webviews libraries overview
- 7:04Dynamically set the height of a Webview
- 10:33Dynamically set the width of a Webview
- 12:32Run code in the Webview
- 15:16Webviews with Flutter Web
- 16:33Optimise loading time of Webviews
- 19:15Inject fonts in the Webview
- 20:55Lot of librairies
- 22:13Still needs improvements
