facebook_analytics 0.1.3 copy "facebook_analytics: ^0.1.3" to clipboard
facebook_analytics: ^0.1.3 copied to clipboard

outdated

Facebook Analytics, flutter package which is used for Facebook analytics and Facebook events.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:facebook_analytics/facebook_analytics.dart';

final facebookAnalytics = FacebookAnalytics();

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: RaisedButton(onPressed: () {
            facebookAnalytics.logEvent(
              name: "test_event",
              parameters: {"value": 10, "subname": "exampleStringValue"},
            );
          }),
        ),
      ),
    );
  }
}
8
likes
40
pub points
42%
popularity

Publisher

verified publishermobilemvp.app

Facebook Analytics, flutter package which is used for Facebook analytics and Facebook events.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on facebook_analytics