- Published on
- Reading time
- 5 min read
Moving Hundreds of Videos Out of a Flutter App With Cloudflare R2 and an On-Device Cache
A B2C Flutter app showed hundreds of short videos, and the media added up to about 430 MB. Instead of shipping it all inside the app, I kept only the cover images and moved the videos to a Cloudflare R2 bucket. The app downloads each video the first time it plays and keeps it on the device, and without internet it shows the cover instead.