bloomBUILD•SHIP•BLOOM
.md
Persistence

Storage Adapters

Interchangeable persistence adapters for SQLite, Hive, and FlutterSecureStorage.

Pluggable Storage Drivers

lib/app/boot.dart
dart
// lib/app/boot.dart
import 'package:bloom_framework/bloom.dart';

class AppBootstrapper implements BloomBootstrapper {
  @override
  Future<void> onBoot(BloomContainer container) async {
    // 1. Choose SQLite / Hive / SharedPreferences storage driver
    final storage = await BloomSqliteStorageAdapter.initialize(
      databaseName: 'app_cache.db',
    );

    container.provideInstance<BloomStorageAdapter>(storage);
  }
}