FLUTTER ECOSYSTEM

mmkv

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android & iOS.

Latest version
2.4.2
30-day downloads
28.8K
Likes
116
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

MMKV is a high-performance, lightweight key-value storage solution developed by WeChat for mobile applications. It provides efficient data persistence across Android, iOS, macOS, Windows, and Linux platforms. Designed for speed and reliability, MMKV uses memory-mapped files to deliver fast read/write operations, making it ideal for storing small to medium-sized data like user preferences, session tokens, or cached content. Its cross-platform support ensures consistent behavior across devices. The Flutter plugin simplifies integration with minimal boilerplate.

Use cases
  • Storing user preferences
  • Caching app data
  • Saving session tokens
  • Persisting configuration settings
  • Handling small-scale app state
Key features
  • High-speed read/write performance
  • Cross-platform compatibility
  • Memory-mapped file storage
  • Low memory footprint
  • Simple API with key-value interface
Suitable for
  • Apps needing fast local storage
  • Mobile apps with frequent data access
  • Developers prioritizing performance
  • Projects requiring lightweight persistence
  • Flutter apps targeting multiple platforms
Considerations
  • Not suitable for large datasets
  • Limited query capabilities
  • Best for simple key-value pairs
  • Data not encrypted by default
  • Requires manual handling of data types
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add mmkv

Categories

Dependencies

Dependency list 7 items
  • ffi^2.0.0
  • mmkv_android>=2.4.2 <2.5.0
  • mmkv_ios>=2.4.2 <2.5.0
  • mmkv_linux>=2.4.2 <2.5.0
  • mmkv_ohos>=2.4.2 <2.5.0
  • mmkv_platform_interface>=2.4.0 <2.5.0
  • mmkv_win32>=2.4.2 <2.5.0

Source repository

Related projects

No data available yet.