Cog offer and incentives
A Dart Client for Cog offer and incentives and Click Streams. This is completely written in Dart and works cross-platform.
Getting Started
dependencies:
cog_offer_and_incentives: ^0.0.6
To import cog_offer_and_incentives
:
import 'package:cog_offer_and_incentives/cog_offer_and_incentives.dart';
You need to wrap your widget with "CognetryClickStreamWidget" provide widget. and we are expecting a readable key value for child widget
ClickStream(
child: ElevatedButton(
key: Key(Add product?.itemName ?? ""),
onPressed: () async {
}));
Once you wrap the widget with mentioned widget then when click on the widget we send click event to Cognetry server