Skip to main content

Storage for Flutters

Storage in Flutter means keeping data on the device and reaching device capabilities. Local options include shared_preferences for small key-value settings, SQLite through sqflite or drift for structured data, and secure storage for secrets. Platform features such as camera, location and notifications are reached through plugins and platform channels.

Stage: Data · Part of the Flutter roadmap · Last reviewed 19 November 2026

What to learn in Storage

Storage interview questions

When should you use SQLite instead of shared_preferences?

shared_preferences suits a few small values such as a theme or flag. SQLite fits many records that need querying, sorting, relations or updates, such as saved items or offline data. It handles volume and structure that key-value storage cannot.

How does Flutter talk to native Android or iOS code?

Through platform channels. Dart sends a named message over a MethodChannel, native code on each platform handles it and returns a result asynchronously. Most developers use existing plugins that already wrap these channels instead of writing them.

Where Storage fits in the Flutter roadmap

Storage belongs to the Data stage (intermediate level), which takes about 18 hours. Network and storage.

Back to the full Flutter roadmap