feature_flags_toggly_isar 0.2.0 copy "feature_flags_toggly_isar: ^0.2.0" to clipboard
feature_flags_toggly_isar: ^0.2.0 copied to clipboard

Isar database persistence backend for the Toggly Flutter SDK (feature_flags_toggly), enabling offline feature flag, variant, and JWKS caching.

example/lib/main.dart

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

/// Minimal example showing how to wire the Isar cache provider into the Toggly
/// Flutter SDK for offline-capable feature flags.
Future<void> main() async {
  final cacheProvider = await IsarCacheProvider.open();

  await Toggly.init(
    appKey: '<your-app-key>',
    environment: 'Production',
    // A stable identity is required for offline restart.
    identity: 'user-123',
    config: TogglyConfig(cacheProvider: cacheProvider),
  );

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

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Isar database persistence backend for the Toggly Flutter SDK (feature_flags_toggly), enabling offline feature flag, variant, and JWKS caching.

Homepage
Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

feature_flags_toggly, flutter, isar_community, isar_community_flutter_libs, path_provider

More

Packages that depend on feature_flags_toggly_isar