feature_flags_toggly_secure_storage 0.1.0 copy "feature_flags_toggly_secure_storage: ^0.1.0" to clipboard
feature_flags_toggly_secure_storage: ^0.1.0 copied to clipboard

Secure-storage persistence backend for the Toggly Flutter SDK (feature_flags_toggly), enabling offline feature flag, variant, and JWKS caching via flutter_secure_storage.

example/lib/main.dart

import 'package:feature_flags_toggly/feature_flags_toggly.dart';
import 'package:feature_flags_toggly_secure_storage/feature_flags_toggly_secure_storage.dart';

/// Minimal example showing how to wire the secure-storage cache provider into
/// the Toggly Flutter SDK for offline-capable feature flags.
Future<void> main() async {
  await Toggly.init(
    appKey: '<your-app-key>',
    environment: 'Production',
    // A stable identity is required for offline restart.
    identity: 'user-123',
    config: TogglyConfig(cacheProvider: SecureStorageCacheProvider()),
  );

  final isEnabled = await Toggly.evaluateFeatureGate(['MyFeature']);
  // ignore: avoid_print
  print('MyFeature enabled: $isEnabled');
}
0
likes
160
points
95
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Secure-storage persistence backend for the Toggly Flutter SDK (feature_flags_toggly), enabling offline feature flag, variant, and JWKS caching via flutter_secure_storage.

Homepage
Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

feature_flags_toggly, flutter, flutter_secure_storage

More

Packages that depend on feature_flags_toggly_secure_storage