simplr_ai 1.2.0 copy "simplr_ai: ^1.2.0" to clipboard
simplr_ai: ^1.2.0 copied to clipboard

Commercial Flutter SDK for Simplr application monitoring, incident context, performance analytics, push notifications, feature flags, fraud signals, and user feedback.

example/lib/main.dart

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

/// Minimal example: initialize RUM + feature flags, then gate a widget on a flag.
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Real User Monitoring with automatic screen tracking.
  final rum = SimplrRUM();
  await rum.initialize(apiKey: 'pk_test_xxx', applicationId: 'example-app');

  // Feature flags — fetched once, then evaluated locally.
  final flags = SimplrFlags();
  await flags.initialize(apiKey: 'pk_test_xxx', environment: 'test');
  flags.setUser('user_123');

  runApp(ExampleApp(flags: flags, rum: rum));
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key, required this.flags, required this.rum});

  final SimplrFlags flags;
  final SimplrRUM rum;

  @override
  Widget build(BuildContext context) {
    final newCheckout = flags.isEnabled('new-checkout');
    return MaterialApp(
      navigatorObservers: [SimplrScreenObserver(rum)],
      home: Scaffold(
        appBar: AppBar(title: const Text('Simplr SDK example')),
        body: Center(
          child: Text(newCheckout ? 'New checkout ✨' : 'Classic checkout'),
        ),
      ),
    );
  }
}
0
likes
130
points
163
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Commercial Flutter SDK for Simplr application monitoring, incident context, performance analytics, push notifications, feature flags, fraud signals, and user feedback.

Homepage

Topics

#fraud #analytics #push-notifications #feature-flags #security

License

unknown (license)

Dependencies

crypto, device_info_plus, firebase_core, firebase_messaging, flutter, flutter_screen_recording, http, package_info_plus, shared_preferences

More

Packages that depend on simplr_ai