How to scale Flutter Web
summary
Tata Digital runs Flutter Web in production for consumer sites serving millions of users, supporting thousands of products and hundreds of brands; key pain points are huge initial bundles and JS/runtime quirks (identical file/object names broke a web build until renaming fixed it). Practical fixes: deferred imports to split bundles (example reduced initial payload ~4.5 → ~2.0), aggressive caching, JS callbacks + method channels for navigation/refresh sync, persisted local storage for state, and conditional imports/stubs for platform gaps. Result: production sites running with acceptable load-time tradeoffs.
AI-written summary · about
