SlowStore package is a versatile local data storage solution for Flutter developers, designed to make data persistence with your Flutter applications easy and efficient.
- Store data as key-value pairs.
- Support for various data types, including strings, num, boolean, date time, map, list.
- Retrieve specific data or entire data in the database.
- Easily create, update or delete stored data.
- Easily rename or delete a database.
- Asynchronous operations for smooth user experiences.
- Highly customizable to adapt to your specific app requirements.
flutter pub add slow_store
Import the Package: Import the package in your Dart code.
import 'package:slow_store/slow_store.dart';
- Create data into a database with a specified id, if none is provided, one will be generated for the data created.
SlowStore.database(name: "name").entry(id).create(data: data);
- Update data of the specified id in the specified database.
SlowStore.database(name: "name").entry(id).update(data: data);
- Get a data in the specified id or all data in the specified database, depending on if the id is provided or not.
SlowStore.database(name: "name").entry(id).read();
SlowStore.database(name: "name").entry().read();
SlowStore.database(name: "name").entry(id).delete();
SlowStore.database(name: name).delete();
SlowStore.database(name: oldName).rename(newName: newName);
Contributions are welcome! If you find any bugs or want to add new features, feel free to submit issues or pull requests.