feature_flag_sdk 0.0.3 copy "feature_flag_sdk: ^0.0.3" to clipboard
feature_flag_sdk: ^0.0.3 copied to clipboard

Feature flag SDK for Flutter with remote toggle, caching, and offline support.

example/lib/main.dart

import 'package:feature_flag_sdk/feature_flag_sdk.dart';
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await FeatureFlagSDK.init(apiKey: "YOUR_API_KEY");

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final enabled = FeatureFlagSDK.isEnabled("new_home");

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Feature Flags Demo")),
        body: Center(
          child: Text(
            enabled ? "NEW HOME SCREEN" : "OLD HOME SCREEN",
            style: const TextStyle(fontSize: 24),
          ),
        ),
      ),
    );
  }
}
11
likes
150
points
260
downloads

Publisher

verified publishertinkers.dev

Weekly Downloads

Feature flag SDK for Flutter with remote toggle, caching, and offline support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on feature_flag_sdk