analytics_logger_gen 0.0.2 copy "analytics_logger_gen: ^0.0.2" to clipboard
analytics_logger_gen: ^0.0.2 copied to clipboard

analytics_logger_gen is a Flutter plugin that generates an integrated event logger for analytics tools such as Firebase Analytics, AppsFlyer, DataDog, and Singular.

example/lib/main.dart

// ignore: depend_on_referenced_packages
import 'package:flutter/material.dart';

import 'analytics_logger/from_git_hub_repo/analytics_logger_from_github_repo.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    AnalyticsEventsProvider.appStarted();
    AnalyticsEventsProvider.mySendMessageClicked(
        title: 'hello', message: 'world');
    AnalyticsEventsProvider.homeBottomButtonClicked(
        a: 'a', b: 'b', c: 'c', d: 'd');
  }

  @override
  void dispose() {
    AnalyticsEventsProvider.appEnded();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const Center(
          child: Text('Running on:'),
        ),
      ),
    );
  }
}
9
likes
0
pub points
56%
popularity

Publisher

verified publishereido9oya.com

analytics_logger_gen is a Flutter plugin that generates an integrated event logger for analytics tools such as Firebase Analytics, AppsFlyer, DataDog, and Singular.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, change_case, csv, flutter, http, path, source_gen

More

Packages that depend on analytics_logger_gen