cux_analytics_sdk 0.0.6 cux_analytics_sdk: ^0.0.6 copied to clipboard
This is an analytics SDK from CUX.io
Features #
Gathering analytics about user's interaction with app.
Getting started #
Don't start. It's in progress yet.
Usage #
void main() {
print("CuxSDK: main()");
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
print("CuxSDK: MyApp build()");
CuxAnalytics.init(
context, '1428112091.0.46456300.1480349278.583c565e0fc5d');
return AnalyticsWidget(
child: MaterialApp(
title: 'Flutter CUX Demo',
...
home: const HomeWidget(),
navigatorObservers: [
CuxAnalytics.createNavigationObserver(context, this)
],
),
);
}
}
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routerConfig: _router,
debugShowCheckedModeBanner: false,
onNavigationNotification:
RouterNavigationListener(rootWidget: this).onNavigationNotification,
);
}
import 'package:cux_analytics_sdk/masking_widget.dart';
MaskingWidget(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Text('Masked text'),
)),
Additional information #
This is an SDK for Android and iOs Flutter apps