appfit 1.1.0 copy "appfit: ^1.1.0" to clipboard
appfit: ^1.1.0 copied to clipboard

AppFit analytics for Flutter. AppFit allows you to quickly, and easily track your analytic events from your apps.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'AppFit Example',
      home: AppFitExample(),
    );
  }
}

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

  @override
  AppFitExampleState createState() => AppFitExampleState();
}

class AppFitExampleState extends State<AppFitExample> {
  final appFit = AppFit(configuration: AppFitConfiguration(apiKey: "API_KEY"));

  @override
  void initState() {
    super.initState();
    appFit.trackEvent('screen_name', properties: {'name': 'AppFit Example'});
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('AppFit Example'),
      ),
      body: const Center(
        child: Text("Welcome to the AppFit example app."),
      ),
    );
  }
}
1
likes
145
points
50
downloads

Publisher

verified publisherappfit.io

Weekly Downloads

AppFit analytics for Flutter. AppFit allows you to quickly, and easily track your analytic events from your apps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

device_info_plus, dio, flutter, internet_connection_checker_plus, package_info_plus, path_provider, shared_preferences, uuid

More

Packages that depend on appfit