analytics_inspector 1.0.3+1 copy "analytics_inspector: ^1.0.3+1" to clipboard
analytics_inspector: ^1.0.3+1 copied to clipboard

A simple inspector to plug to your analytics events to help debugging them without needing Debug View

example/lib/main.dart

import 'package:analytics_inspector/analytics_inspector.dart';
import 'package:example/analytics_inspector_widget.dart';
import 'package:flutter/material.dart';

final events = List.generate(
  20,
  (index) => AnalyticsEvent(
    datetime: DateTime.now().toLocal(),
    name: 'event name $index',
    parameters: {'event_parameter': index},
  ),
);

final screenEvents = List.generate(
  20,
  (index) => AnalyticsScreenEvent(
    datetime: DateTime.now().toLocal(),
    screeName: 'screen name $index',
    parameters: {'screen_parameter': index},
  ),
);

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const AnalyticsInspectorWidget(),
    );
  }
}
1
likes
150
points
1.11k
downloads

Publisher

verified publisherrodrigobastos.dev

Weekly Downloads

A simple inspector to plug to your analytics events to help debugging them without needing Debug View

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter

More

Packages that depend on analytics_inspector