zeba_academy_local_storage_plus 1.0.0 copy "zeba_academy_local_storage_plus: ^1.0.0" to clipboard
zeba_academy_local_storage_plus: ^1.0.0 copied to clipboard

Smart unified local storage for Flutter supporting Hive, SQLite, SharedPreferences with encryption and auto-backup.

zeba_academy_local_storage_plus #

๐Ÿš€ A powerful unified local storage solution for Flutter that provides a single API to manage Hive, SQLite, and SharedPreferences with optional encryption, caching, and backup support.

zeba_academy_local_storage_plus simplifies local data management for Flutter apps by providing a clean, consistent interface across multiple storage systems.

Perfect for offline-first apps, secure data storage, and high-performance caching.


โœจ Features #

โœ” Unified Storage API Use the same API for Hive, SQLite, and SharedPreferences.

โœ” Multiple Storage Backends

  • Hive (fast key-value storage)
  • SQLite (structured relational storage)
  • SharedPreferences (lightweight settings)

โœ” Optional Encryption Protect sensitive data with optional encryption support.

โœ” Auto Backup & Restore Backup and restore local data easily.

โœ” Offline-First Support Perfect for apps that work without internet.

โœ” Caching Layer Cache frequently accessed data for faster performance.

โœ” Lightweight & Flexible Use only what you need with minimal overhead.


๐Ÿ“ฆ Installation #

Add the package to your pubspec.yaml:

dependencies:
  zeba_academy_local_storage_plus: ^1.0.0

Then run:

flutter pub get

๐Ÿš€ Getting Started #

Initialize the storage system before using it.

import 'package:zeba_academy_local_storage_plus/zeba_academy_local_storage_plus.dart';

void main() async {
  final storage = await ZebaLocalStoragePlus.init(
    storageType: StorageType.hive,
    encrypted: false,
  );
}

๐Ÿ’พ Storing Data #

await storage.set('username', 'Sarvesh');

๐Ÿ“– Reading Data #

final username = await storage.get('username');
print(username);

โŒ Deleting Data #

await storage.delete('username');

๐Ÿ”„ Using Different Storage Engines #

Hive #

final storage = await ZebaLocalStoragePlus.init(
  storageType: StorageType.hive,
);

SQLite #

final storage = await ZebaLocalStoragePlus.init(
  storageType: StorageType.sqlite,
);

SharedPreferences #

final storage = await ZebaLocalStoragePlus.init(
  storageType: StorageType.sharedPreferences,
);

๐Ÿ” Encryption Example #

final storage = await ZebaLocalStoragePlus.init(
  storageType: StorageType.hive,
  encrypted: true,
  encryptionKey: 'my_secret_key',
);

๐Ÿ’ก Use Cases #

This package is ideal for:

โ€ข Offline-first mobile apps โ€ข Secure local storage โ€ข App configuration and settings โ€ข Caching frequently accessed data โ€ข Flutter apps needing multiple storage engines


๐Ÿงช Testing #

Run tests with:

flutter test

๐Ÿ“Š Package Goals #

zeba_academy_local_storage_plus aims to provide:

โ€ข Simple API for complex storage systems โ€ข High performance local storage โ€ข Secure and flexible data management โ€ข Developer-friendly Flutter integration


๐Ÿค Contributions #

Contributions are welcome! Feel free to submit issues or pull requests to improve the package.


๐Ÿ“„ License #

This project is licensed under the GPL-3.0 License.


About Me #

โœจ Iโ€™m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.

You can learn more about me and my work at sufyanism.com or connect with me on Linkedin


Your all-in-one no-bloat hub! #

๐Ÿš€ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! ๐Ÿ’ปโœจ

Zeba Academy is a learning platform dedicated to coding, technology, and development.

โžก Visit our main site: https://zeba.academy โžก Explore hands-on courses and resources at: https://code.zeba.academy โžก Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy โžก Follow us on Instagram: https://www.instagram.com/zeba.academy/


โญ If you find this package useful, consider giving it a star and sharing it with the Flutter community.

Thank you for visiting!

0
likes
140
points
83
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

Smart unified local storage for Flutter supporting Hive, SQLite, SharedPreferences with encryption and auto-backup.

Homepage

License

GPL-3.0 (license)

Dependencies

crypto, flutter, hive, hive_flutter, path, path_provider, shared_preferences, sqflite

More

Packages that depend on zeba_academy_local_storage_plus