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

Lumin Flutter SDK.

Lumin is hassle-free, privacy-focused analytics made and hosted in the EU. Use this SDK in your Flutter app.

Features #

  • Automatic tracking of DAUs, WAUs, MAUs & YAUs
  • Stats on OS & country of origin
  • All without saving any personally identifiying information about your users
    • So full GDPR compliance out of the box
  • Custom KPIs

Getting started #

Add the Lumin SDK to your dependencies:

dart pub add lumin_flutter

Then, intialize Lumin in your main function:

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

  await Lumin.init("<Your Lumin App Token>");

  runApp(const MyApp());
}

Finally, wrap your app in the LuminLifecycleLogger widget:

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return LuminLifecycleLogger(
      child: MaterialApp(
        // ...
      )
    );
  }
}

Usage #

If you want to send a custom event, use the instance attribute on Lumin:

Lumin.instance.trackCustomEvent("EVENT_NAME");