Series 2 of 2 — Part 3 of 4
Building DevFeed — Part 3: In-app WebView, Sharing Actions, and the INTERNET Permission
Series: Building DevFeed — A Proper Flutter MVVM App from Day One
With the feed working, the obvious next feature was letting users read articles. An in-app WebView gives a better experience than the system browser — you can add a progress indicator, handle navigation events, and keep users inside the app.
This post covers the WebView implementation, sharing actions, and a debugging lesson about Android permissions that cost me more time than it should have.
The WebView screen
I used the webview_flutter package. I made ArticleWebViewScreen a ConsumerStatefulWidget rather than ConsumerWidget because the WebViewController needs to be initialised in initState and stored as a widget field.…