engagespot_sdk 0.0.6 copy "engagespot_sdk: ^0.0.6" to clipboard
engagespot_sdk: ^0.0.6 copied to clipboard

A Flutter SDK for integrating the Engagespot service into your applications. Handle notifications and listen to real-time notification events with ease

example/lib/main.dart

import 'package:engagespot_sdk/models/Notifications.dart';
import 'package:flutter/material.dart';
import 'package:engagespot_sdk/engagespot_sdk.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  Engagespot.initSdk(
    isDebug: true,
    apiKey: "{{api_key}}",
  );
  Engagespot.LoginUser(userId: "user_id");

  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: InkWell(
            child: Text("Click Me"),
            onTap: () async {},
          ),
        ),
      ),
    );
  }
}
6
likes
140
points
51
downloads

Publisher

verified publisherengagespot.co

Weekly Downloads

A Flutter SDK for integrating the Engagespot service into your applications. Handle notifications and listen to real-time notification events with ease

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, shared_preferences, socket_io_client

More

Packages that depend on engagespot_sdk