opensight_analytics 0.1.0 opensight_analytics: ^0.1.0 copied to clipboard
Simply get to know your Users, without compromising their privacy. Opensight Analytics SDK implementation for Flutter.
import 'package:flutter/material.dart';
import 'package:opensight_analytics/opensight_analytics.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
OpensightAnalytics().initApp({
"url": "http://example.host",
"app_id": "application_id",
"name": "name of your app",
"token": "your_application_token",
"package_name": "io.app"
});
runApp(const ExampleApp());
}
class ExampleApp extends StatelessWidget {
const ExampleApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(home: Scaffold(body: Home()));
}
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const Center(child: Text("Opensight Demo App"));
}
}